[openeuler:OLK-6.6 2439/2439] drivers/irqchip/irq-gic-v3-its.c:422:6: warning: no previous prototype for function 'build_devid_pools'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 016a2eb38be5e29bea5011bd5fed627886f59f65 commit: dce2ff908fc83eb4decc87632bdd0cad670528cf [2439/2439] irqchip/gic-v3-its: Move build_devid_pools from its to acpi iort init config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250705/202507051010.IHIzrory-lkp@i...) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250705/202507051010.IHIzrory-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202507051010.IHIzrory-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/irqchip/irq-gic-v3-its.c:7: In file included from include/linux/acpi.h:37: In file included from include/acpi/acpi_io.h:7: In file included from arch/arm64/include/asm/acpi.h:14: In file included from include/linux/memblock.h:12: In file included from include/linux/mm.h:2253: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3-its.c:422:6: warning: no previous prototype for function 'build_devid_pools' [-Wmissing-prototypes] 422 | void build_devid_pools(void) | ^ drivers/irqchip/irq-gic-v3-its.c:422:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 422 | void build_devid_pools(void) | ^ | static drivers/irqchip/irq-gic-v3-its.c:54:12: warning: unused function 'iort_get_used_bus_bitmap' [-Wunused-function] 54 | static int iort_get_used_bus_bitmap(unsigned long **bus_bm, resource_size_t *len) | ^~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated.
vim +/build_devid_pools +422 drivers/irqchip/irq-gic-v3-its.c 417 418 #ifdef CONFIG_VIRT_PLAT_DEV 419 /* 420 * Currently we only build *one* devid pool. 421 */
422 void build_devid_pools(void) 423 { 424 struct its_node *its; 425 426 its = list_first_entry(&its_nodes, struct its_node, entry); 427 if (readl_relaxed(its->base + GITS_IIDR) != 0x00051736) 428 return; 429 430 if (!probe_devid_pool_one()) 431 rsv_devid_pool_cap = true; 432 433 if (rsv_devid_pool_cap) 434 pr_info("ITS: reserved device id pools enabled\n"); 435 } 436 #endif 437
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot