mailweb.openeuler.org
Manage this list

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

Kernel

Threads by month
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2021 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2020 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2019 -----
  • December
kernel@openeuler.org

  • 45 participants
  • 21944 discussions
[openeuler:openEuler-1.0-LTS 1942/1942] drivers/md/bcache/acache.c:65:5: warning: no previous prototype for function 'acache_open'
by kernel test robot 14 Dec '25

14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: 1c09f1b02db96b8277226cbe64fe5bbd185a7149 [1942/1942] bcache: add a framework to perform prefetch config: x86_64-randconfig-006-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140431.6ZelE1lA-lkp@…) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140431.6ZelE1lA-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140431.6ZelE1lA-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:354:9: note: previous definition is here 354 | #define __SANITIZE_ADDRESS__ 1 | ^ >> drivers/md/bcache/acache.c:65:5: warning: no previous prototype for function 'acache_open' [-Wmissing-prototypes] 65 | int acache_open(struct inode *inode, struct file *filp) | ^ drivers/md/bcache/acache.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 65 | int acache_open(struct inode *inode, struct file *filp) | ^ | static >> drivers/md/bcache/acache.c:83:5: warning: no previous prototype for function 'acache_release' [-Wmissing-prototypes] 83 | int acache_release(struct inode *inode, struct file *filp) | ^ drivers/md/bcache/acache.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 83 | int acache_release(struct inode *inode, struct file *filp) | ^ | static drivers/md/bcache/acache.c:89:9: warning: no previous prototype for function 'read_circ_slice' [-Wmissing-prototypes] 89 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf, | ^ drivers/md/bcache/acache.c:89:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 89 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf, | ^ | static >> drivers/md/bcache/acache.c:224:6: warning: no previous prototype for function 'init_acache_circ' [-Wmissing-prototypes] 224 | void init_acache_circ(struct acache_circ **circ, void *startaddr) | ^ drivers/md/bcache/acache.c:224:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 224 | void init_acache_circ(struct acache_circ **circ, void *startaddr) | ^ | static >> drivers/md/bcache/acache.c:253:5: warning: no previous prototype for function 'acache_prefetch_init' [-Wmissing-prototypes] 253 | int acache_prefetch_init(struct acache_device *adev) | ^ drivers/md/bcache/acache.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 253 | int acache_prefetch_init(struct acache_device *adev) | ^ | static drivers/md/bcache/acache.c:401:20: warning: no previous prototype for function 'get_cached_device_by_dev' [-Wmissing-prototypes] 401 | struct cached_dev *get_cached_device_by_dev(dev_t dev) | ^ drivers/md/bcache/acache.c:401:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 401 | struct cached_dev *get_cached_device_by_dev(dev_t dev) | ^ | static >> drivers/md/bcache/acache.c:414:13: warning: no previous prototype for function 'get_bio_by_item' [-Wmissing-prototypes] 414 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item) | ^ drivers/md/bcache/acache.c:414:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 414 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item) | ^ | static 8 warnings generated. vim +/acache_open +65 drivers/md/bcache/acache.c 63 64 > 65 int acache_open(struct inode *inode, struct file *filp) 66 { 67 struct mem_reg *dev; 68 69 int minor = MINOR(inode->i_rdev); 70 71 if (minor >= ACACHE_NR_DEVS) 72 return -ENODEV; 73 if (atomic_xchg(&acache_opened_dev, 1)) 74 return -EPERM; 75 76 dev = &adev.mem_regionp[minor]; 77 78 filp->private_data = dev; 79 80 return 0; 81 } 82 > 83 int acache_release(struct inode *inode, struct file *filp) 84 { 85 atomic_dec(&acache_opened_dev); 86 return 0; 87 } 88 89 ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf, 90 size_t size) 91 { 92 unsigned long first, todo, flags; 93 94 spin_lock_irqsave(&circ->lock, flags); 95 96 todo = CIRC_CNT(circ->head, circ->tail, circ->size); 97 if (todo == 0) { 98 spin_unlock_irqrestore(&circ->lock, flags); 99 return 0; 100 } 101 if (todo > size / sizeof(struct acache_info)) 102 todo = size / sizeof(struct acache_info); 103 104 first = CIRC_CNT_TO_END(circ->head, circ->tail, circ->size); 105 if (first > todo) 106 first = todo; 107 108 memcpy(buf, circ->data + circ->tail, first * sizeof(struct acache_info)); 109 if (first < todo) 110 memcpy(buf + first, circ->data, 111 (todo - first) * sizeof(struct acache_info)); 112 circ->tail = (circ->tail + todo) & (circ->size - 1); 113 114 spin_unlock_irqrestore(&circ->lock, flags); 115 return todo * sizeof(struct acache_info); 116 } 117 118 static ssize_t acache_read(struct file *filp, char __user *buf, 119 size_t size, loff_t *ppos) 120 { 121 long ret, cut; 122 123 if (metadata.conntype != ACACHE_READWRITE_CONN) 124 return -EINVAL; 125 126 if (size > MAX_TRANSFER_SIZE) 127 size = MAX_TRANSFER_SIZE; 128 129 ret = read_circ_slice(adev.acache_info_circ, adev.readbuf, size); 130 if (ret <= 0) 131 return ret; 132 133 cut = copy_to_user(buf, adev.readbuf, size); 134 return ret - cut; 135 } 136 137 int process_one_request(struct acache_info *item); 138 static void prefetch_worker_func(struct work_struct *work) 139 { 140 struct prefetch_worker *sw = 141 container_of(work, struct prefetch_worker, work); 142 143 process_one_request(&sw->s); 144 spin_lock(&adev.prefetch_workers_free_list_lock); 145 list_add_tail(&sw->list, &adev.prefetch_workers_free); 146 spin_unlock(&adev.prefetch_workers_free_list_lock); 147 } 148 149 static int queue_prefetch_item(struct acache_info *s) 150 { 151 struct prefetch_worker *sw; 152 153 spin_lock(&adev.prefetch_workers_free_list_lock); 154 sw = list_first_entry_or_null(&adev.prefetch_workers_free, 155 struct prefetch_worker, list); 156 if (!sw) { 157 spin_unlock(&adev.prefetch_workers_free_list_lock); 158 return -1; 159 } 160 list_del_init(&sw->list); 161 spin_unlock(&adev.prefetch_workers_free_list_lock); 162 163 memcpy(&sw->s, s, sizeof(struct acache_info)); 164 INIT_WORK(&sw->work, prefetch_worker_func); 165 queue_work(adev.wq, &sw->work); 166 return 0; 167 } 168 169 static ssize_t acache_write(struct file *filp, const char __user *buf, 170 size_t size, loff_t *ppos) 171 { 172 long cut; 173 int i; 174 175 if (metadata.conntype != ACACHE_READWRITE_CONN) 176 return -EINVAL; 177 178 if (size > MAX_TRANSFER_SIZE) 179 size = MAX_TRANSFER_SIZE; 180 181 cut = copy_from_user(adev.writebuf, buf, size); 182 for (i = 0; i < (size - cut) / sizeof(struct acache_info); i++) { 183 if (queue_prefetch_item(adev.writebuf + i)) 184 break; 185 } 186 return i * sizeof(struct acache_info); 187 } 188 189 static long acache_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) 190 { 191 switch (cmd) { 192 case ACACHE_GET_METADATA: 193 return copy_to_user((struct acache_metadata __user *)arg, 194 &metadata, sizeof(struct acache_metadata)); 195 default: 196 return -EINVAL; 197 } 198 } 199 200 static const struct file_operations acache_fops = { 201 .owner = THIS_MODULE, 202 .read = acache_read, 203 .write = acache_write, 204 .open = acache_open, 205 .release = acache_release, 206 .unlocked_ioctl = acache_ioctl, 207 }; 208 209 void save_circ_item(struct acache_info *data) 210 { 211 unsigned long flags; 212 struct acache_circ *circ = adev.acache_info_circ; 213 214 spin_lock_irqsave(&circ->lock, flags); 215 if (CIRC_SPACE(circ->head, circ->tail, circ->size) >= 1) { 216 memcpy(&circ->data[circ->head], data, sizeof(struct acache_info)); 217 circ->head = (circ->head + 1) & (circ->size - 1); 218 } else { 219 pr_debug("ringbuffer is full; discard new request."); 220 } 221 spin_unlock_irqrestore(&circ->lock, flags); 222 } 223 > 224 void init_acache_circ(struct acache_circ **circ, void *startaddr) 225 { 226 *circ = (struct acache_circ *)startaddr; 227 (*circ)->head = 0; 228 (*circ)->tail = 0; 229 (*circ)->size = ACACHE_CIRC_SIZE; 230 spin_lock_init(&(*circ)->lock); 231 } 232 233 static void acache_free_mem(void) 234 { 235 int i; 236 237 for (i = 0; i < ACACHE_NR_DEVS; i++) 238 vfree(adev.mem_regionp[i].data); 239 240 if (adev.readbuf) { 241 vfree(adev.readbuf); 242 adev.readbuf = NULL; 243 } 244 if (adev.writebuf) { 245 vfree(adev.writebuf); 246 adev.writebuf = NULL; 247 } 248 249 kfree(adev.prefetch_workers); 250 adev.prefetch_workers = NULL; 251 } 252 > 253 int acache_prefetch_init(struct acache_device *adev) 254 { 255 int i; 256 257 if (acache_prefetch_workers <= 0) { 258 pr_err("acache_dev_size should not be less than zero"); 259 return -1; 260 } 261 adev->prefetch_workers = kmalloc_array(acache_prefetch_workers, 262 sizeof(struct prefetch_worker), 263 GFP_KERNEL); 264 if (!adev->prefetch_workers) 265 goto fail_prefetch_workers_alloc; 266 267 INIT_LIST_HEAD(&adev->prefetch_workers_free); 268 spin_lock_init(&adev->prefetch_workers_free_list_lock); 269 for (i = 0; i < acache_prefetch_workers; i++) { 270 spin_lock(&adev->prefetch_workers_free_list_lock); 271 list_add_tail(&adev->prefetch_workers[i].list, 272 &adev->prefetch_workers_free); 273 spin_unlock(&adev->prefetch_workers_free_list_lock); 274 } 275 276 adev->wq = alloc_workqueue("acache_prefetch", WQ_MEM_RECLAIM, 0); 277 if (!adev->wq) 278 goto fail_workqueue_alloc; 279 280 return 0; 281 282 fail_workqueue_alloc: 283 kfree(adev->prefetch_workers); 284 adev->prefetch_workers = NULL; 285 fail_prefetch_workers_alloc: 286 if (adev->wq) 287 destroy_workqueue(adev->wq); 288 return -1; 289 } 290 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1942/1942] drivers/base/node.c:480: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node'
by kernel test robot 14 Dec '25

14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: 9e8e325cfd089c66c9a2f570f99021a62bf0ae09 [1942/1942] node: Link memory nodes to their compute nodes config: arm64-randconfig-002-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140305.nS3EGEEx-lkp@…) compiler: aarch64-linux-gcc (GCC) 11.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140305.nS3EGEEx-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140305.nS3EGEEx-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/base/node.c:568:5: warning: no previous prototype for 'register_mem_block_under_node_early' [-Wmissing-prototypes] 568 | int register_mem_block_under_node_early(struct memory_block *mem_blk, void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/base/node.c:480: warning: Function parameter or member 'mem_nid' not described in 'register_memory_node_under_compute_node' >> drivers/base/node.c:480: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node' >> drivers/base/node.c:480: warning: Excess function parameter 'mem_node' description in 'register_memory_node_under_compute_node' >> drivers/base/node.c:480: warning: Excess function parameter 'cpu_node' description in 'register_memory_node_under_compute_node' vim +480 drivers/base/node.c 463 464 /** 465 * register_memory_node_under_compute_node - link memory node to its compute 466 * node for a given access class. 467 * @mem_node: Memory node number 468 * @cpu_node: Cpu node number 469 * @access: Access class to register 470 * 471 * Description: 472 * For use with platforms that may have separate memory and compute nodes. 473 * This function will export node relationships linking which memory 474 * initiator nodes can access memory targets at a given ranked access 475 * class. 476 */ 477 int register_memory_node_under_compute_node(unsigned int mem_nid, 478 unsigned int cpu_nid, 479 unsigned access) > 480 { 481 struct node *init_node, *targ_node; 482 struct node_access_nodes *initiator, *target; 483 int ret; 484 485 if (!node_online(cpu_nid) || !node_online(mem_nid)) 486 return -ENODEV; 487 488 init_node = node_devices[cpu_nid]; 489 targ_node = node_devices[mem_nid]; 490 initiator = node_init_node_access(init_node, access); 491 target = node_init_node_access(targ_node, access); 492 if (!initiator || !target) 493 return -ENOMEM; 494 495 ret = sysfs_add_link_to_group(&initiator->dev.kobj, "targets", 496 &targ_node->dev.kobj, 497 dev_name(&targ_node->dev)); 498 if (ret) 499 return ret; 500 501 ret = sysfs_add_link_to_group(&target->dev.kobj, "initiators", 502 &init_node->dev.kobj, 503 dev_name(&init_node->dev)); 504 if (ret) 505 goto err; 506 507 return 0; 508 err: 509 sysfs_remove_link_from_group(&initiator->dev.kobj, "targets", 510 dev_name(&targ_node->dev)); 511 return ret; 512 } 513 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1942/1942] arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x162: unsupported intra-function call
by kernel test robot 14 Dec '25

14 Dec '25
Hi Josh, First bad commit (maybe != root cause): tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: f3a233591ef81d81ea87a24717d4bee05211a56c [1942/1942] x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20251214/202512140208.Qp9EVDfd-lkp@…) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140208.Qp9EVDfd-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140208.Qp9EVDfd-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/entry/entry_64.S: Assembler messages: arch/x86/entry/entry_64.S:1767: Warning: no instruction mnemonic suffix given and no register operands; using default for `sysret' >> arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x162: unsupported intra-function call -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1941/1941] drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev'
by kernel test robot 14 Dec '25

14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: a29d78a07cb2dc27dd74e4c2642ff110fd6528ea [1941/1941] Intel: platform/x86: ISST: Store per CPU information config: x86_64-randconfig-101-20251212 (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@…) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140153.vqXFeYh3-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:2: In file included from include/linux/compiler_types.h:59: include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 20 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:353:9: note: previous definition is here 353 | #define __SANITIZE_ADDRESS__ 1 | ^ 1 warning generated. >> drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev' drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Excess function parameter 'bus_number' description in 'isst_if_get_pci_dev' vim +66 drivers/platform/x86/intel_speed_select_if/isst_if_common.c 52 53 /** 54 * isst_if_get_pci_dev() - Get the PCI device instance for a CPU 55 * @cpu: Logical CPU number. 56 * @bus_number: The bus number assigned by the hardware. 57 * @dev: The device number assigned by the hardware. 58 * @fn: The function number assigned by the hardware. 59 * 60 * Using cached bus information, find out the PCI device for a bus number, 61 * device and function. 62 * 63 * Return: Return pci_dev pointer or NULL. 64 */ 65 struct pci_dev *isst_if_get_pci_dev(int cpu, int bus_no, int dev, int fn) > 66 { 67 int bus_number; 68 69 if (bus_no < 0 || bus_no > 1 || cpu < 0 || cpu >= nr_cpu_ids || 70 cpu >= num_possible_cpus()) 71 return NULL; 72 73 bus_number = isst_cpu_info[cpu].bus_info[bus_no]; 74 if (bus_number < 0) 75 return NULL; 76 77 return pci_get_domain_bus_and_slot(0, bus_number, PCI_DEVFN(dev, fn)); 78 } 79 EXPORT_SYMBOL_GPL(isst_if_get_pci_dev); 80 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 3541/3541] mm/memcontrol.c:3147:6: warning: no previous prototype for 'hisi_oom_recover'
by kernel test robot 14 Dec '25

14 Dec '25
Hi Weilong, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302 commit: b498d9f1bacd40d583c0970cab02ad522127a7e7 [3541/3541] arm64/ascend: Add new enable_oom_killer interface for oom contrl config: arm64-randconfig-r113-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140001.gwqxcHHh-lkp@…) compiler: aarch64-linux-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140001.gwqxcHHh-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512140001.gwqxcHHh-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/memcontrol.c:3147:6: warning: no previous prototype for 'hisi_oom_recover' [-Wmissing-prototypes] 3147 | void hisi_oom_recover(struct obj_cgroup *objcg) | ^~~~~~~~~~~~~~~~ vim +/hisi_oom_recover +3147 mm/memcontrol.c 3145 3146 #ifdef CONFIG_ASCEND_OOM > 3147 void hisi_oom_recover(struct obj_cgroup *objcg) 3148 { 3149 struct mem_cgroup *memcg; 3150 3151 memcg = get_mem_cgroup_from_objcg(objcg); 3152 if (!mem_cgroup_is_root(memcg)) 3153 memcg_oom_recover(memcg); 3154 css_put(&memcg->css); 3155 } 3156 #else 3157 static inline void hisi_oom_recover(struct obj_cgroup *objcg) { } 3158 #endif 3159 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 3541/3541] drivers/gpu/drm/phytium/phytium_crtc.c:174:1: warning: no previous prototype for function 'phytium_crtc_atomic_duplicate_state'
by kernel test robot 13 Dec '25

13 Dec '25
Hi xuyan, First bad commit (maybe != root cause): tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302 commit: 3b4a5906fa714bdc9a15fc04374942888737eb4c [3541/3541] drm/phytium: Fix Phytium DRM build fail config: x86_64-randconfig-r134-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132253.yDHpZZhf-lkp@…) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132253.yDHpZZhf-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512132253.yDHpZZhf-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/phytium/phytium_plane.c:30:6: warning: no previous prototype for function 'phytium_plane_destroy' [-Wmissing-prototypes] 30 | void phytium_plane_destroy(struct drm_plane *plane) | ^ drivers/gpu/drm/phytium/phytium_plane.c:30:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 30 | void phytium_plane_destroy(struct drm_plane *plane) | ^ | static drivers/gpu/drm/phytium/phytium_plane.c:72:1: warning: no previous prototype for function 'phytium_plane_atomic_set_property' [-Wmissing-prototypes] 72 | phytium_plane_atomic_set_property(struct drm_plane *plane, | ^ drivers/gpu/drm/phytium/phytium_plane.c:71:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 71 | int | ^ | static >> drivers/gpu/drm/phytium/phytium_plane.c:82:1: warning: no previous prototype for function 'phytium_plane_atomic_duplicate_state' [-Wmissing-prototypes] 82 | phytium_plane_atomic_duplicate_state(struct drm_plane *plane) | ^ drivers/gpu/drm/phytium/phytium_plane.c:81:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 81 | struct drm_plane_state * | ^ | static drivers/gpu/drm/phytium/phytium_plane.c:103:1: warning: no previous prototype for function 'phytium_plane_atomic_destroy_state' [-Wmissing-prototypes] 103 | phytium_plane_atomic_destroy_state(struct drm_plane *plane, struct drm_plane_state *state) | ^ drivers/gpu/drm/phytium/phytium_plane.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 102 | void | ^ | static drivers/gpu/drm/phytium/phytium_plane.c:392:20: warning: variable 'crtc_x' set but not used [-Wunused-but-set-variable] 392 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h; | ^ drivers/gpu/drm/phytium/phytium_plane.c:392:28: warning: variable 'crtc_y' set but not used [-Wunused-but-set-variable] 392 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h; | ^ 6 warnings generated. -- >> drivers/gpu/drm/phytium/phytium_crtc.c:174:1: warning: no previous prototype for function 'phytium_crtc_atomic_duplicate_state' [-Wmissing-prototypes] 174 | phytium_crtc_atomic_duplicate_state(struct drm_crtc *crtc) | ^ drivers/gpu/drm/phytium/phytium_crtc.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 173 | struct drm_crtc_state * | ^ | static >> drivers/gpu/drm/phytium/phytium_crtc.c:189:1: warning: no previous prototype for function 'phytium_crtc_atomic_destroy_state' [-Wmissing-prototypes] 189 | phytium_crtc_atomic_destroy_state(struct drm_crtc *crtc, | ^ drivers/gpu/drm/phytium/phytium_crtc.c:188:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 188 | void | ^ | static drivers/gpu/drm/phytium/phytium_crtc.c:402:29: warning: variable 'phytium_crtc_state' set but not used [-Wunused-but-set-variable] 402 | struct phytium_crtc_state *phytium_crtc_state = NULL; | ^ 3 warnings generated. -- drivers/gpu/drm/phytium/phytium_dp.c:506:6: warning: no previous prototype for function 'phytium_dp_coding_8b10b_need_enable' [-Wmissing-prototypes] 506 | bool phytium_dp_coding_8b10b_need_enable(unsigned char test_pattern) | ^ drivers/gpu/drm/phytium/phytium_dp.c:506:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 506 | bool phytium_dp_coding_8b10b_need_enable(unsigned char test_pattern) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:523:6: warning: no previous prototype for function 'phytium_dp_scrambled_need_enable' [-Wmissing-prototypes] 523 | bool phytium_dp_scrambled_need_enable(unsigned char test_pattern) | ^ drivers/gpu/drm/phytium/phytium_dp.c:523:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 523 | bool phytium_dp_scrambled_need_enable(unsigned char test_pattern) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:656:6: warning: no previous prototype for function 'phytium_dp_hw_enable_audio' [-Wmissing-prototypes] 656 | void phytium_dp_hw_enable_audio(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:656:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 656 | void phytium_dp_hw_enable_audio(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:825:6: warning: no previous prototype for function 'phytium_dp_hw_disable_video' [-Wmissing-prototypes] 825 | void phytium_dp_hw_disable_video(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:825:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 825 | void phytium_dp_hw_disable_video(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:836:6: warning: no previous prototype for function 'phytium_dp_hw_video_is_enable' [-Wmissing-prototypes] 836 | bool phytium_dp_hw_video_is_enable(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:836:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 836 | bool phytium_dp_hw_video_is_enable(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:847:6: warning: no previous prototype for function 'phytium_dp_hw_enable_video' [-Wmissing-prototypes] 847 | void phytium_dp_hw_enable_video(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:847:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 847 | void phytium_dp_hw_enable_video(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:859:6: warning: no previous prototype for function 'phytium_dp_hw_config_video' [-Wmissing-prototypes] 859 | void phytium_dp_hw_config_video(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:859:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 859 | void phytium_dp_hw_config_video(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:951:6: warning: no previous prototype for function 'phytium_dp_hw_disable_output' [-Wmissing-prototypes] 951 | void phytium_dp_hw_disable_output(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:951:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 951 | void phytium_dp_hw_disable_output(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:963:6: warning: no previous prototype for function 'phytium_dp_hw_enable_output' [-Wmissing-prototypes] 963 | void phytium_dp_hw_enable_output(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:963:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 963 | void phytium_dp_hw_enable_output(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:975:6: warning: no previous prototype for function 'phytium_dp_hw_enable_input_source' [-Wmissing-prototypes] 975 | void phytium_dp_hw_enable_input_source(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:975:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 975 | void phytium_dp_hw_enable_input_source(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:986:6: warning: no previous prototype for function 'phytium_dp_hw_disable_input_source' [-Wmissing-prototypes] 986 | void phytium_dp_hw_disable_input_source(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:986:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 986 | void phytium_dp_hw_disable_input_source(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:996:6: warning: no previous prototype for function 'phytium_dp_hw_output_is_enable' [-Wmissing-prototypes] 996 | bool phytium_dp_hw_output_is_enable(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 996 | bool phytium_dp_hw_output_is_enable(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:1033:6: warning: no previous prototype for function 'phytium_dp_hw_hpd_irq_setup' [-Wmissing-prototypes] 1033 | void phytium_dp_hw_hpd_irq_setup(struct phytium_dp_device *phytium_dp, bool enable) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1033:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1033 | void phytium_dp_hw_hpd_irq_setup(struct phytium_dp_device *phytium_dp, bool enable) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:1048:5: warning: no previous prototype for function 'phytium_dp_hw_init' [-Wmissing-prototypes] 1048 | int phytium_dp_hw_init(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1048:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1048 | int phytium_dp_hw_init(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:1226:6: warning: no previous prototype for function 'phytium_dp_dpcd_sink_dpms' [-Wmissing-prototypes] 1226 | void phytium_dp_dpcd_sink_dpms(struct phytium_dp_device *phytium_dp, int mode) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1226:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1226 | void phytium_dp_dpcd_sink_dpms(struct phytium_dp_device *phytium_dp, int mode) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:1451:5: warning: no previous prototype for function 'phytium_dp_get_link_train_fallback_values' [-Wmissing-prototypes] 1451 | int phytium_dp_get_link_train_fallback_values(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1451:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1451 | int phytium_dp_get_link_train_fallback_values(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:1500:5: warning: no previous prototype for function 'phytium_dp_start_link_train' [-Wmissing-prototypes] 1500 | int phytium_dp_start_link_train(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1500:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1500 | int phytium_dp_start_link_train(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:1815:6: warning: no previous prototype for function 'phytium_dp_hpd_poll_handler' [-Wmissing-prototypes] 1815 | void phytium_dp_hpd_poll_handler(struct phytium_display_private *priv) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1815:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1815 | void phytium_dp_hpd_poll_handler(struct phytium_display_private *priv) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:1962:6: warning: no previous prototype for function 'phytium_dp_fast_link_train' [-Wmissing-prototypes] 1962 | bool phytium_dp_fast_link_train(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:1962:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1962 | bool phytium_dp_fast_link_train(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:2153:6: warning: no previous prototype for function 'phytium_dp_adjust_link_train_parameter' [-Wmissing-prototypes] 2153 | void phytium_dp_adjust_link_train_parameter(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/phytium_dp.c:2153:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 2153 | void phytium_dp_adjust_link_train_parameter(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:2213:1: warning: no previous prototype for function 'phytium_encoder_mode_valid' [-Wmissing-prototypes] 2213 | phytium_encoder_mode_valid(struct drm_encoder *encoder, const struct drm_display_mode *mode) | ^ drivers/gpu/drm/phytium/phytium_dp.c:2212:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 2212 | enum drm_mode_status | ^ | static drivers/gpu/drm/phytium/phytium_dp.c:2269:6: warning: no previous prototype for function 'phytium_dp_encoder_destroy' [-Wmissing-prototypes] 2269 | void phytium_dp_encoder_destroy(struct drm_encoder *encoder) | ^ drivers/gpu/drm/phytium/phytium_dp.c:2269:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 2269 | void phytium_dp_encoder_destroy(struct drm_encoder *encoder) | ^ | static >> drivers/gpu/drm/phytium/phytium_dp.c:2482:5: warning: no previous prototype for function 'phytium_get_encoder_crtc_mask' [-Wmissing-prototypes] 2482 | int phytium_get_encoder_crtc_mask(struct phytium_dp_device *phytium_dp, int port) | ^ drivers/gpu/drm/phytium/phytium_dp.c:2482:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 2482 | int phytium_get_encoder_crtc_mask(struct phytium_dp_device *phytium_dp, int port) | ^ | static 23 warnings generated. -- drivers/gpu/drm/phytium/phytium_gem.c:22:5: warning: no previous prototype for function 'phytium_memory_pool_alloc' [-Wmissing-prototypes] 22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr, | ^ drivers/gpu/drm/phytium/phytium_gem.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr, | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:37:6: warning: no previous prototype for function 'phytium_memory_pool_free' [-Wmissing-prototypes] 37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size) | ^ drivers/gpu/drm/phytium/phytium_gem.c:37:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:161:5: warning: no previous prototype for function 'phytium_gem_prime_vmap' [-Wmissing-prototypes] 161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ drivers/gpu/drm/phytium/phytium_gem.c:161:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:170:6: warning: no previous prototype for function 'phytium_gem_prime_vunmap' [-Wmissing-prototypes] 170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ drivers/gpu/drm/phytium/phytium_gem.c:170:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:174:5: warning: no previous prototype for function 'phytium_gem_prime_mmap' [-Wmissing-prototypes] 174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) | ^ drivers/gpu/drm/phytium/phytium_gem.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) | ^ | static >> drivers/gpu/drm/phytium/phytium_gem.c:186:5: warning: no previous prototype for function 'phytium_dma_transfer' [-Wmissing-prototypes] 186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr, | ^ drivers/gpu/drm/phytium/phytium_gem.c:186:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr, | ^ | static 6 warnings generated. -- >> drivers/gpu/drm/phytium/phytium_fbdev.c:108:5: warning: no previous prototype for function 'phytium_drm_fbdev_init' [-Wmissing-prototypes] 108 | int phytium_drm_fbdev_init(struct drm_device *dev) | ^ drivers/gpu/drm/phytium/phytium_fbdev.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 108 | int phytium_drm_fbdev_init(struct drm_device *dev) | ^ | static drivers/gpu/drm/phytium/phytium_fbdev.c:130:6: warning: no previous prototype for function 'phytium_drm_fbdev_fini' [-Wmissing-prototypes] 130 | void phytium_drm_fbdev_fini(struct drm_device *dev) | ^ drivers/gpu/drm/phytium/phytium_fbdev.c:130:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 130 | void phytium_drm_fbdev_fini(struct drm_device *dev) | ^ | static 2 warnings generated. -- >> drivers/gpu/drm/phytium/phytium_debugfs.c:376:5: warning: no previous prototype for function 'phytium_debugfs_connector_add' [-Wmissing-prototypes] 376 | int phytium_debugfs_connector_add(struct drm_connector *connector) | ^ drivers/gpu/drm/phytium/phytium_debugfs.c:376:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 376 | int phytium_debugfs_connector_add(struct drm_connector *connector) | ^ | static drivers/gpu/drm/phytium/phytium_debugfs.c:438:5: warning: no previous prototype for function 'phytium_debugfs_display_register' [-Wmissing-prototypes] 438 | int phytium_debugfs_display_register(struct phytium_display_private *priv) | ^ drivers/gpu/drm/phytium/phytium_debugfs.c:438:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 438 | int phytium_debugfs_display_register(struct phytium_display_private *priv) | ^ | static 2 warnings generated. -- >> drivers/gpu/drm/phytium/px210_dp.c:852:6: warning: no previous prototype for function 'px210_dp_hw_spread_is_enable' [-Wmissing-prototypes] 852 | bool px210_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/px210_dp.c:852:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 852 | bool px210_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp) | ^ | static >> drivers/gpu/drm/phytium/px210_dp.c:864:5: warning: no previous prototype for function 'px210_dp_hw_reset' [-Wmissing-prototypes] 864 | int px210_dp_hw_reset(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/px210_dp.c:864:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 864 | int px210_dp_hw_reset(struct phytium_dp_device *phytium_dp) | ^ | static drivers/gpu/drm/phytium/px210_dp.c:897:9: warning: no previous prototype for function 'px210_dp_hw_get_source_lane_count' [-Wmissing-prototypes] 897 | uint8_t px210_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp) | ^ drivers/gpu/drm/phytium/px210_dp.c:897:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 897 | uint8_t px210_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp) | ^ | static 3 warnings generated. .. sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/phytium/pe220x_dp.c:465:6: sparse: sparse: symbol 'pe220x_dp_hw_spread_is_enable' was not declared. Should it be static? >> drivers/gpu/drm/phytium/pe220x_dp.c:470:5: sparse: sparse: symbol 'pe220x_dp_hw_reset' was not declared. Should it be static? drivers/gpu/drm/phytium/pe220x_dp.c:485:9: sparse: sparse: symbol 'pe220x_dp_hw_get_source_lane_count' was not declared. Should it be static? -- drivers/gpu/drm/phytium/phytium_pci.c:20:5: sparse: sparse: symbol 'dc_msi_enable' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_pci.c:24:6: sparse: sparse: symbol 'phytium_pci_vram_hw_init' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@ drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: expected void *pool_virt_addr drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: got void [noderef] __iomem * drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@ drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: expected void *pool_virt_addr drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: got void [noderef] __iomem * >> drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void *pool_virt_addr @@ drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: expected void [noderef] __iomem *addr drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: got void *pool_virt_addr >> drivers/gpu/drm/phytium/phytium_pci.c:49:5: sparse: sparse: symbol 'phytium_pci_vram_init' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void *pool_virt_addr @@ drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: expected void [noderef] __iomem *addr drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: got void *pool_virt_addr >> drivers/gpu/drm/phytium/phytium_pci.c:93:6: sparse: sparse: symbol 'phytium_pci_vram_fini' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_pci.c:115:5: sparse: sparse: symbol 'phytium_pci_dma_init' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_pci.c:163:6: sparse: sparse: symbol 'phytium_pci_dma_fini' was not declared. Should it be static? -- >> drivers/gpu/drm/phytium/phytium_panel.c:234:6: sparse: sparse: symbol 'phytium_dp_panel_release_backlight_funcs' was not declared. Should it be static? -- >> drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char [noderef] __iomem *screen_base @@ got void * @@ drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: expected char [noderef] __iomem *screen_base drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: got void * >> drivers/gpu/drm/phytium/phytium_fbdev.c:29:10: sparse: sparse: Initializer entry defined twice drivers/gpu/drm/phytium/phytium_fbdev.c:31:10: sparse: also defined here -- >> drivers/gpu/drm/phytium/phytium_plane.c:30:6: sparse: sparse: symbol 'phytium_plane_destroy' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_plane.c:72:1: sparse: sparse: symbol 'phytium_plane_atomic_set_property' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_plane.c:81:24: sparse: sparse: symbol 'phytium_plane_atomic_duplicate_state' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_plane.c:103:1: sparse: sparse: symbol 'phytium_plane_atomic_destroy_state' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_plane.c:140:30: sparse: sparse: symbol 'phytium_plane_funcs' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_plane.c:543:37: sparse: sparse: symbol 'phytium_plane_helper_funcs' was not declared. Should it be static? -- >> drivers/gpu/drm/phytium/phytium_gem.c:22:5: sparse: sparse: symbol 'phytium_memory_pool_alloc' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_gem.c:37:6: sparse: sparse: symbol 'phytium_memory_pool_free' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_gem.c:161:5: sparse: sparse: symbol 'phytium_gem_prime_vmap' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_gem.c:170:6: sparse: sparse: symbol 'phytium_gem_prime_vunmap' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_gem.c:174:5: sparse: sparse: symbol 'phytium_gem_prime_mmap' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_gem.c:186:5: sparse: sparse: symbol 'phytium_dma_transfer' was not declared. Should it be static? -- drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@ drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: expected void *pool_virt_addr drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: got void [noderef] __iomem * >> drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pool_virt_addr @@ drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: expected void volatile [noderef] __iomem *addr drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: got void *pool_virt_addr drivers/gpu/drm/phytium/phytium_platform.c:22:5: sparse: sparse: symbol 'phytium_platform_carveout_mem_init' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pool_virt_addr @@ drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: expected void volatile [noderef] __iomem *addr drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: got void *pool_virt_addr drivers/gpu/drm/phytium/phytium_platform.c:63:6: sparse: sparse: symbol 'phytium_platform_carveout_mem_fini' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_platform.c:372:10: sparse: sparse: Initializer entry defined twice drivers/gpu/drm/phytium/phytium_platform.c:380:10: sparse: also defined here -- >> drivers/gpu/drm/phytium/phytium_crtc.c:173:23: sparse: sparse: symbol 'phytium_crtc_atomic_duplicate_state' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_crtc.c:189:1: sparse: sparse: symbol 'phytium_crtc_atomic_destroy_state' was not declared. Should it be static? -- >> drivers/gpu/drm/phytium/px210_dp.c:852:6: sparse: sparse: symbol 'px210_dp_hw_spread_is_enable' was not declared. Should it be static? >> drivers/gpu/drm/phytium/px210_dp.c:864:5: sparse: sparse: symbol 'px210_dp_hw_reset' was not declared. Should it be static? >> drivers/gpu/drm/phytium/px210_dp.c:897:9: sparse: sparse: symbol 'px210_dp_hw_get_source_lane_count' was not declared. Should it be static? -- >> drivers/gpu/drm/phytium/phytium_dp.c:506:6: sparse: sparse: symbol 'phytium_dp_coding_8b10b_need_enable' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:523:6: sparse: sparse: symbol 'phytium_dp_scrambled_need_enable' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:656:6: sparse: sparse: symbol 'phytium_dp_hw_enable_audio' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:825:6: sparse: sparse: symbol 'phytium_dp_hw_disable_video' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:836:6: sparse: sparse: symbol 'phytium_dp_hw_video_is_enable' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:847:6: sparse: sparse: symbol 'phytium_dp_hw_enable_video' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:859:6: sparse: sparse: symbol 'phytium_dp_hw_config_video' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:951:6: sparse: sparse: symbol 'phytium_dp_hw_disable_output' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:963:6: sparse: sparse: symbol 'phytium_dp_hw_enable_output' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:975:6: sparse: sparse: symbol 'phytium_dp_hw_enable_input_source' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:986:6: sparse: sparse: symbol 'phytium_dp_hw_disable_input_source' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:996:6: sparse: sparse: symbol 'phytium_dp_hw_output_is_enable' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:1033:6: sparse: sparse: symbol 'phytium_dp_hw_hpd_irq_setup' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:1048:5: sparse: sparse: symbol 'phytium_dp_hw_init' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:1226:6: sparse: sparse: symbol 'phytium_dp_dpcd_sink_dpms' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:1451:5: sparse: sparse: symbol 'phytium_dp_get_link_train_fallback_values' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:1500:5: sparse: sparse: symbol 'phytium_dp_start_link_train' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:1815:6: sparse: sparse: symbol 'phytium_dp_hpd_poll_handler' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:1962:6: sparse: sparse: symbol 'phytium_dp_fast_link_train' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:2153:6: sparse: sparse: symbol 'phytium_dp_adjust_link_train_parameter' was not declared. Should it be static? >> drivers/gpu/drm/phytium/phytium_dp.c:2213:1: sparse: sparse: symbol 'phytium_encoder_mode_valid' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:2269:6: sparse: sparse: symbol 'phytium_dp_encoder_destroy' was not declared. Should it be static? drivers/gpu/drm/phytium/phytium_dp.c:2482:5: sparse: sparse: symbol 'phytium_get_encoder_crtc_mask' was not declared. Should it be static? vim +/phytium_crtc_atomic_duplicate_state +174 drivers/gpu/drm/phytium/phytium_crtc.c b80df10f845813 lishuo 2024-01-31 172 b80df10f845813 lishuo 2024-01-31 @173 struct drm_crtc_state * b80df10f845813 lishuo 2024-01-31 @174 phytium_crtc_atomic_duplicate_state(struct drm_crtc *crtc) b80df10f845813 lishuo 2024-01-31 175 { b80df10f845813 lishuo 2024-01-31 176 struct phytium_crtc_state *phytium_crtc_state = NULL; b80df10f845813 lishuo 2024-01-31 177 b80df10f845813 lishuo 2024-01-31 178 phytium_crtc_state = kmemdup(crtc->state, sizeof(*phytium_crtc_state), b80df10f845813 lishuo 2024-01-31 179 GFP_KERNEL); b80df10f845813 lishuo 2024-01-31 180 if (!phytium_crtc_state) b80df10f845813 lishuo 2024-01-31 181 return NULL; b80df10f845813 lishuo 2024-01-31 182 __drm_atomic_helper_crtc_duplicate_state(crtc, b80df10f845813 lishuo 2024-01-31 183 &phytium_crtc_state->base); b80df10f845813 lishuo 2024-01-31 184 b80df10f845813 lishuo 2024-01-31 185 return &phytium_crtc_state->base; b80df10f845813 lishuo 2024-01-31 186 } b80df10f845813 lishuo 2024-01-31 187 b80df10f845813 lishuo 2024-01-31 188 void b80df10f845813 lishuo 2024-01-31 @189 phytium_crtc_atomic_destroy_state(struct drm_crtc *crtc, b80df10f845813 lishuo 2024-01-31 190 struct drm_crtc_state *state) b80df10f845813 lishuo 2024-01-31 191 { b80df10f845813 lishuo 2024-01-31 192 struct phytium_crtc_state *phytium_crtc_state = b80df10f845813 lishuo 2024-01-31 193 to_phytium_crtc_state(state); b80df10f845813 lishuo 2024-01-31 194 b80df10f845813 lishuo 2024-01-31 195 phytium_crtc_state = to_phytium_crtc_state(state); b80df10f845813 lishuo 2024-01-31 196 __drm_atomic_helper_crtc_destroy_state(state); b80df10f845813 lishuo 2024-01-31 197 kfree(phytium_crtc_state); b80df10f845813 lishuo 2024-01-31 198 } b80df10f845813 lishuo 2024-01-31 199 :::::: The code at line 174 was first introduced by commit :::::: b80df10f845813bb4fc2002b5386ecdfa8be5f6c DRM: Phytium display DRM driver :::::: TO: lishuo <lishuo(a)phytium.com.cn> :::::: CC: lishuo <lishuo(a)phytium.com.cn> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:OLK-6.6 3541/3541] fs/nfs/dir.c:1498:6: sparse: sparse: symbol 'nfs_check_have_lookup_cache_flag' was not declared. Should it be static?
by kernel test robot 13 Dec '25

13 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302 commit: 18e360871c3f648ecb0d8cc9b23fd4268a64c17f [3541/3541] add enfs feature config: x86_64-randconfig-r134-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132106.3RmZpaUX-lkp@…) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132106.3RmZpaUX-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512132106.3RmZpaUX-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> fs/nfs/dir.c:1498:6: sparse: sparse: symbol 'nfs_check_have_lookup_cache_flag' was not declared. Should it be static? -- >> net/sunrpc/clnt.c:1588:15: sparse: sparse: incompatible types in comparison expression (different address spaces): net/sunrpc/clnt.c:1588:15: sparse: struct rpc_xprt [noderef] __rcu * net/sunrpc/clnt.c:1588:15: sparse: struct rpc_xprt * vim +/nfs_check_have_lookup_cache_flag +1498 fs/nfs/dir.c 1497 > 1498 bool nfs_check_have_lookup_cache_flag(struct nfs_server *server, int flag) 1499 { 1500 #if IS_ENABLED(CONFIG_ENFS) 1501 return enfs_check_have_lookup_cache_flag(server, flag); 1502 #else 1503 return (server->flags & NFS_MOUNT_LOOKUP_CACHE_NONE); 1504 #endif 1505 } 1506 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1941/1941] fs/ext4/inode.c:2995:23: warning: unused variable 'sbi'
by kernel test robot 13 Dec '25

13 Dec '25
Hi Jan, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: 7b208222f6845875c568d238aeb9db17a1c63d96 [1941/1941] ext4: avoid deadlock in fs reclaim with page writeback config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20251213/202512132031.c1OJdCdq-lkp@…) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6ec8c4351cfc1d0627d1633b02ea787bd29c77d8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132031.c1OJdCdq-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512132031.c1OJdCdq-lkp@intel.com/ All warnings (new ones prefixed by >>): >> fs/ext4/inode.c:2995:23: warning: unused variable 'sbi' [-Wunused-variable] 2995 | struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb); | ^~~ 1 warning generated. vim +/sbi +2995 fs/ext4/inode.c 64769240bd07f4 Alex Tomas 2008-07-11 2988 5f0663bb4a64f5 Dan Williams 2017-12-21 2989 static int ext4_dax_writepages(struct address_space *mapping, 5f0663bb4a64f5 Dan Williams 2017-12-21 2990 struct writeback_control *wbc) 5f0663bb4a64f5 Dan Williams 2017-12-21 2991 { 5f0663bb4a64f5 Dan Williams 2017-12-21 2992 int ret; 5f0663bb4a64f5 Dan Williams 2017-12-21 2993 long nr_to_write = wbc->nr_to_write; 5f0663bb4a64f5 Dan Williams 2017-12-21 2994 struct inode *inode = mapping->host; 5f0663bb4a64f5 Dan Williams 2017-12-21 @2995 struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb); 7b208222f68458 Jan Kara 2024-06-11 2996 int alloc_ctx; 5f0663bb4a64f5 Dan Williams 2017-12-21 2997 5f0663bb4a64f5 Dan Williams 2017-12-21 2998 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) 5f0663bb4a64f5 Dan Williams 2017-12-21 2999 return -EIO; 5f0663bb4a64f5 Dan Williams 2017-12-21 3000 7b208222f68458 Jan Kara 2024-06-11 3001 alloc_ctx = ext4_writepages_down_read(inode->i_sb); 5f0663bb4a64f5 Dan Williams 2017-12-21 3002 trace_ext4_writepages(inode, wbc); 5f0663bb4a64f5 Dan Williams 2017-12-21 3003 5f0663bb4a64f5 Dan Williams 2017-12-21 3004 ret = dax_writeback_mapping_range(mapping, inode->i_sb->s_bdev, wbc); 5f0663bb4a64f5 Dan Williams 2017-12-21 3005 trace_ext4_writepages_result(inode, wbc, ret, 5f0663bb4a64f5 Dan Williams 2017-12-21 3006 nr_to_write - wbc->nr_to_write); 7b208222f68458 Jan Kara 2024-06-11 3007 ext4_writepages_up_read(inode->i_sb, alloc_ctx); 5f0663bb4a64f5 Dan Williams 2017-12-21 3008 return ret; 5f0663bb4a64f5 Dan Williams 2017-12-21 3009 } 5f0663bb4a64f5 Dan Williams 2017-12-21 3010 :::::: The code at line 2995 was first introduced by commit :::::: 5f0663bb4a64f588f0a2dd6d1be68d40f9af0086 ext4, dax: introduce ext4_dax_aops :::::: TO: Dan Williams <dan.j.williams(a)intel.com> :::::: CC: Dan Williams <dan.j.williams(a)intel.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1942/1942] drivers/cpufreq/brcmstb-avs-cpufreq.c:458:9: warning: ISO C90 forbids mixed declarations and code
by kernel test robot 13 Dec '25

13 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: 5bfdf47235f04f1d6e51aa8381e804c3160d834b [1942/1942] cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value config: arm64-randconfig-r071-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132042.PgSubudu-lkp@…) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132042.PgSubudu-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512132042.PgSubudu-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/cpufreq/brcmstb-avs-cpufreq.c: In function 'brcm_avs_cpufreq_get': >> drivers/cpufreq/brcmstb-avs-cpufreq.c:458:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 458 | struct private_data *priv = policy->driver_data; | ^~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y]) Selected by [y]: - SDEI_WATCHDOG [=y] && <choice> && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n] vim +458 drivers/cpufreq/brcmstb-avs-cpufreq.c de322e085995b9 Markus Mayer 2016-10-27 452 de322e085995b9 Markus Mayer 2016-10-27 453 static unsigned int brcm_avs_cpufreq_get(unsigned int cpu) de322e085995b9 Markus Mayer 2016-10-27 454 { de322e085995b9 Markus Mayer 2016-10-27 455 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); 5bfdf47235f04f Anastasia Belova 2024-05-07 456 if (!policy) 5bfdf47235f04f Anastasia Belova 2024-05-07 457 return 0; de322e085995b9 Markus Mayer 2016-10-27 @458 struct private_data *priv = policy->driver_data; de322e085995b9 Markus Mayer 2016-10-27 459 de322e085995b9 Markus Mayer 2016-10-27 460 return brcm_avs_get_frequency(priv->base); de322e085995b9 Markus Mayer 2016-10-27 461 } de322e085995b9 Markus Mayer 2016-10-27 462 :::::: The code at line 458 was first introduced by commit :::::: de322e085995b9417582d6f72229dadb5c09d163 cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs :::::: TO: Markus Mayer <mmayer(a)broadcom.com> :::::: CC: Rafael J. Wysocki <rafael.j.wysocki(a)intel.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
[openeuler:openEuler-1.0-LTS 1941/1941] drivers/gpu/drm/phytium/phytium_display_drv.c:89:16: warning: variable 'status' set but not used
by kernel test robot 13 Dec '25

13 Dec '25
Hi lishuo, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 5a399b91821faeec2466751db2d714b24f8eb17c commit: cad0702e5286d3cc80afe545de027858b855dd5a [1941/1941] DRM: Phytium display DRM driver config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251213/202512132013.dOzXok66-lkp@…) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132013.dOzXok66-lkp@…) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp(a)intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512132013.dOzXok66-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/phytium/phytium_display_drv.c: In function 'phytium_irq_preinstall': >> drivers/gpu/drm/phytium/phytium_display_drv.c:89:16: warning: variable 'status' set but not used [-Wunused-but-set-variable] 89 | int i, status; | ^~~~~~ drivers/gpu/drm/phytium/phytium_display_drv.c: In function 'phytium_irq_uninstall': drivers/gpu/drm/phytium/phytium_display_drv.c:100:16: warning: variable 'status' set but not used [-Wunused-but-set-variable] 100 | int i, status; | ^~~~~~ -- drivers/gpu/drm/phytium/phytium_plane.c:25:6: warning: no previous prototype for 'phytium_plane_destroy' [-Wmissing-prototypes] 25 | void phytium_plane_destroy(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_plane.c:67:1: warning: no previous prototype for 'phytium_plane_atomic_set_property' [-Wmissing-prototypes] 67 | phytium_plane_atomic_set_property(struct drm_plane *plane, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_plane.c:77:1: warning: no previous prototype for 'phytium_plane_atomic_duplicate_state' [-Wmissing-prototypes] 77 | phytium_plane_atomic_duplicate_state(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_plane.c:98:1: warning: no previous prototype for 'phytium_plane_atomic_destroy_state' [-Wmissing-prototypes] 98 | phytium_plane_atomic_destroy_state(struct drm_plane *plane, struct drm_plane_state *state) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_plane.c: In function 'phytium_dc_primary_plane_update': >> drivers/gpu/drm/phytium/phytium_plane.c:372:35: warning: variable 'crtc_y' set but not used [-Wunused-but-set-variable] 372 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h; | ^~~~~~ >> drivers/gpu/drm/phytium/phytium_plane.c:372:27: warning: variable 'crtc_x' set but not used [-Wunused-but-set-variable] 372 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h; | ^~~~~~ -- >> drivers/gpu/drm/phytium/phytium_crtc.c:104:1: warning: no previous prototype for 'phytium_crtc_atomic_duplicate_state' [-Wmissing-prototypes] 104 | phytium_crtc_atomic_duplicate_state(struct drm_crtc *crtc) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_crtc.c:119:1: warning: no previous prototype for 'phytium_crtc_atomic_destroy_state' [-Wmissing-prototypes] 119 | phytium_crtc_atomic_destroy_state(struct drm_crtc *crtc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_crtc.c: In function 'phytium_crtc_atomic_flush': drivers/gpu/drm/phytium/phytium_crtc.c:303:36: warning: variable 'phytium_crtc_state' set but not used [-Wunused-but-set-variable] 303 | struct phytium_crtc_state *phytium_crtc_state = NULL; | ^~~~~~~~~~~~~~~~~~ -- >> drivers/gpu/drm/phytium/phytium_dp.c:542:6: warning: no previous prototype for 'phytium_dp_coding_8b10b_need_enable' [-Wmissing-prototypes] 542 | bool phytium_dp_coding_8b10b_need_enable(unsigned char test_pattern) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:559:6: warning: no previous prototype for 'phytium_dp_scrambled_need_enable' [-Wmissing-prototypes] 559 | bool phytium_dp_scrambled_need_enable(unsigned char test_pattern) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:692:6: warning: no previous prototype for 'phytium_dp_hw_enable_audio' [-Wmissing-prototypes] 692 | void phytium_dp_hw_enable_audio(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:861:6: warning: no previous prototype for 'phytium_dp_hw_disable_video' [-Wmissing-prototypes] 861 | void phytium_dp_hw_disable_video(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:872:6: warning: no previous prototype for 'phytium_dp_hw_video_is_enable' [-Wmissing-prototypes] 872 | bool phytium_dp_hw_video_is_enable(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:883:6: warning: no previous prototype for 'phytium_dp_hw_enable_video' [-Wmissing-prototypes] 883 | void phytium_dp_hw_enable_video(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:895:6: warning: no previous prototype for 'phytium_dp_hw_config_video' [-Wmissing-prototypes] 895 | void phytium_dp_hw_config_video(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:984:6: warning: no previous prototype for 'phytium_dp_hw_disable_output' [-Wmissing-prototypes] 984 | void phytium_dp_hw_disable_output(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:996:6: warning: no previous prototype for 'phytium_dp_hw_enable_output' [-Wmissing-prototypes] 996 | void phytium_dp_hw_enable_output(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:1008:6: warning: no previous prototype for 'phytium_dp_hw_enable_input_source' [-Wmissing-prototypes] 1008 | void phytium_dp_hw_enable_input_source(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:1019:6: warning: no previous prototype for 'phytium_dp_hw_disable_input_source' [-Wmissing-prototypes] 1019 | void phytium_dp_hw_disable_input_source(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:1029:6: warning: no previous prototype for 'phytium_dp_hw_output_is_enable' [-Wmissing-prototypes] 1029 | bool phytium_dp_hw_output_is_enable(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:1066:6: warning: no previous prototype for 'phytium_dp_hw_hpd_irq_setup' [-Wmissing-prototypes] 1066 | void phytium_dp_hw_hpd_irq_setup(struct phytium_dp_device *phytium_dp, bool enable) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:1081:5: warning: no previous prototype for 'phytium_dp_hw_init' [-Wmissing-prototypes] 1081 | int phytium_dp_hw_init(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:1260:6: warning: no previous prototype for 'phytium_dp_dpcd_sink_dpms' [-Wmissing-prototypes] 1260 | void phytium_dp_dpcd_sink_dpms(struct phytium_dp_device *phytium_dp, int mode) | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:1486:5: warning: no previous prototype for 'phytium_dp_get_link_train_fallback_values' [-Wmissing-prototypes] 1486 | int phytium_dp_get_link_train_fallback_values(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:1535:5: warning: no previous prototype for 'phytium_dp_start_link_train' [-Wmissing-prototypes] 1535 | int phytium_dp_start_link_train(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:1840:6: warning: no previous prototype for 'phytium_dp_hpd_poll_handler' [-Wmissing-prototypes] 1840 | void phytium_dp_hpd_poll_handler(struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:1987:6: warning: no previous prototype for 'phytium_dp_fast_link_train' [-Wmissing-prototypes] 1987 | bool phytium_dp_fast_link_train(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_dp.c:2178:6: warning: no previous prototype for 'phytium_dp_adjust_link_train_parameter' [-Wmissing-prototypes] 2178 | void phytium_dp_adjust_link_train_parameter(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_dp.c:2438:5: warning: no previous prototype for 'phytium_get_encoder_crtc_mask' [-Wmissing-prototypes] 2438 | int phytium_get_encoder_crtc_mask(struct phytium_dp_device *phytium_dp, int port) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/phytium_gem.c:21:5: warning: no previous prototype for 'phytium_memory_pool_alloc' [-Wmissing-prototypes] 21 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr, | ^~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_gem.c:36:6: warning: no previous prototype for 'phytium_memory_pool_free' [-Wmissing-prototypes] 36 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size) | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_gem.c:188:5: warning: no previous prototype for 'phytium_dma_transfer' [-Wmissing-prototypes] 188 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr, | ^~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/x100_dp.c:852:6: warning: no previous prototype for 'x100_dp_hw_spread_is_enable' [-Wmissing-prototypes] 852 | bool x100_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/x100_dp.c:864:5: warning: no previous prototype for 'x100_dp_hw_reset' [-Wmissing-prototypes] 864 | int x100_dp_hw_reset(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/x100_dp.c:897:9: warning: no previous prototype for 'x100_dp_hw_get_source_lane_count' [-Wmissing-prototypes] 897 | uint8_t x100_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- >> drivers/gpu/drm/phytium/x100_dc.c:64:6: warning: no previous prototype for 'x100_dc_hw_vram_init' [-Wmissing-prototypes] 64 | void x100_dc_hw_vram_init(struct phytium_display_private *priv, resource_size_t vram_addr, | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/x100_dc.c:96:6: warning: no previous prototype for 'x100_dc_hw_clear_msi_irq' [-Wmissing-prototypes] 96 | void x100_dc_hw_clear_msi_irq(struct phytium_display_private *priv, uint32_t phys_pipe) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/x100_dc.c:101:6: warning: no previous prototype for 'x100_dc_hw_config_pix_clock' [-Wmissing-prototypes] 101 | void x100_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/x100_dc.c:119:6: warning: no previous prototype for 'x100_dc_hw_disable' [-Wmissing-prototypes] 119 | void x100_dc_hw_disable(struct drm_crtc *crtc) | ^~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/x100_dc.c:167:5: warning: no previous prototype for 'x100_dc_hw_fb_format_check' [-Wmissing-prototypes] 167 | int x100_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/x100_dc.c:237:6: warning: no previous prototype for 'x100_dc_hw_plane_get_primary_format' [-Wmissing-prototypes] 237 | void x100_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/x100_dc.c:246:6: warning: no previous prototype for 'x100_dc_hw_plane_get_cursor_format' [-Wmissing-prototypes] 246 | void x100_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/x100_dc.c:255:6: warning: no previous prototype for 'x100_dc_hw_update_dcreq' [-Wmissing-prototypes] 255 | void x100_dc_hw_update_dcreq(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/x100_dc.c:312:6: warning: no previous prototype for 'x100_dc_hw_update_primary_hi_addr' [-Wmissing-prototypes] 312 | void x100_dc_hw_update_primary_hi_addr(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- >> drivers/gpu/drm/phytium/phytium_pci.c:23:6: warning: no previous prototype for 'phytium_pci_vram_hw_init' [-Wmissing-prototypes] 23 | void phytium_pci_vram_hw_init(struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_pci.c:30:5: warning: no previous prototype for 'phytium_pci_vram_init' [-Wmissing-prototypes] 30 | int phytium_pci_vram_init(struct pci_dev *pdev, struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_pci.c:68:6: warning: no previous prototype for 'phytium_pci_vram_fini' [-Wmissing-prototypes] 68 | void phytium_pci_vram_fini(struct pci_dev *pdev, struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/phytium_pci.c:89:5: warning: no previous prototype for 'phytium_pci_dma_init' [-Wmissing-prototypes] 89 | int phytium_pci_dma_init(struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_pci.c: In function 'phytium_pci_dma_init': drivers/gpu/drm/phytium/phytium_pci.c:99:34: error: 'PCI_VENDOR_ID_PHYTIUM' undeclared (first use in this function); did you mean 'PCI_VENDOR_ID_PHILIPS'? 99 | gpu_dev = pci_get_device(PCI_VENDOR_ID_PHYTIUM, 0xdc20, NULL); | ^~~~~~~~~~~~~~~~~~~~~ | PCI_VENDOR_ID_PHILIPS drivers/gpu/drm/phytium/phytium_pci.c:99:34: note: each undeclared identifier is reported only once for each function it appears in drivers/gpu/drm/phytium/phytium_pci.c: At top level: >> drivers/gpu/drm/phytium/phytium_pci.c:137:6: warning: no previous prototype for 'phytium_pci_dma_fini' [-Wmissing-prototypes] 137 | void phytium_pci_dma_fini(struct phytium_display_private *priv) | ^~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/phytium/phytium_pci.c:7: include/linux/pci.h:888:19: error: 'PCI_VENDOR_ID_PHYTIUM' undeclared here (not in a function); did you mean 'PCI_VENDOR_ID_PHILIPS'? 888 | .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \ | ^~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_pci.c:375:11: note: in expansion of macro 'PCI_VDEVICE' 375 | { PCI_VDEVICE(PHYTIUM, 0xdc22), (kernel_ulong_t)&x100_info }, | ^~~~~~~~~~~ -- drivers/gpu/drm/phytium/e2000_dc.c:68:6: warning: no previous prototype for 'e2000_dc_hw_vram_init' [-Wmissing-prototypes] 68 | void e2000_dc_hw_vram_init(struct phytium_display_private *priv, resource_size_t vram_addr, | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/e2000_dc.c:82:6: warning: no previous prototype for 'e2000_dc_hw_config_pix_clock' [-Wmissing-prototypes] 82 | void e2000_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/e2000_dc.c:99:6: warning: no previous prototype for 'e2000_dc_hw_reset' [-Wmissing-prototypes] 99 | void e2000_dc_hw_reset(struct drm_crtc *crtc) | ^~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/e2000_dc.c:193:5: warning: no previous prototype for 'e2000_dc_hw_fb_format_check' [-Wmissing-prototypes] 193 | int e2000_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/e2000_dc.c:205:6: warning: no previous prototype for 'e2000_dc_hw_plane_get_primary_format' [-Wmissing-prototypes] 205 | void e2000_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/e2000_dc.c:214:6: warning: no previous prototype for 'e2000_dc_hw_plane_get_cursor_format' [-Wmissing-prototypes] 214 | void e2000_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/e2000_dc.c:223:6: warning: no previous prototype for 'e2000_dc_hw_update_primary_hi_addr' [-Wmissing-prototypes] 223 | void e2000_dc_hw_update_primary_hi_addr(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/phytium/e2000_dc.c:240:6: warning: no previous prototype for 'e2000_dc_hw_update_cursor_hi_addr' [-Wmissing-prototypes] 240 | void e2000_dc_hw_update_cursor_hi_addr(struct drm_plane *plane, uint64_t iova) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- >> drivers/gpu/drm/phytium/phytium_platform.c:19:5: warning: no previous prototype for 'phytium_platform_carveout_mem_init' [-Wmissing-prototypes] 19 | int phytium_platform_carveout_mem_init(struct platform_device *pdev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_platform.c:60:6: warning: no previous prototype for 'phytium_platform_carveout_mem_fini' [-Wmissing-prototypes] 60 | void phytium_platform_carveout_mem_fini(struct platform_device *pdev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/status +89 drivers/gpu/drm/phytium/phytium_display_drv.c 85 86 static void phytium_irq_preinstall(struct drm_device *dev) 87 { 88 struct phytium_display_private *priv = dev->dev_private; > 89 int i, status; 90 91 for_each_pipe_masked(priv, i) { 92 status = phytium_readl_reg(priv, priv->dc_reg_base[i], PHYTIUM_DC_INT_STATUS); 93 phytium_writel_reg(priv, INT_DISABLE, priv->dc_reg_base[i], PHYTIUM_DC_INT_ENABLE); 94 } 95 } 96 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 2195
  • Older →

HyperKitty Powered by HyperKitty