tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 39d344bdf1da74284209d54d7199c6c6daca9905 commit: 6533f3af69cee90712f3481841901ab0a10f8339 [3067/3067] ub:ubfi: ubfi driver create ubc device config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20251030/202510301246.3F4So5Wc-lkp@i...) 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/20251030/202510301246.3F4So5Wc-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/202510301246.3F4So5Wc-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubfi/irq.c:11:5: warning: no previous prototype for function 'ubrt_register_gsi' [-Wmissing-prototypes] 11 | int ubrt_register_gsi(u32 hwirq, int trigger, int polarity, const char *name, | ^ drivers/ub/ubfi/irq.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 11 | int ubrt_register_gsi(u32 hwirq, int trigger, int polarity, const char *name, | ^ | static drivers/ub/ubfi/irq.c:37:6: warning: no previous prototype for function 'ubrt_unregister_gsi' [-Wmissing-prototypes] 37 | void ubrt_unregister_gsi(u32 hwirq) | ^ drivers/ub/ubfi/irq.c:37:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 37 | void ubrt_unregister_gsi(u32 hwirq) | ^ | static 2 warnings generated.
vim +/ubrt_register_gsi +11 drivers/ub/ubfi/irq.c 10
11 int ubrt_register_gsi(u32 hwirq, int trigger, int polarity, const char *name, 12 struct resource *res) 13 { 14 #ifdef CONFIG_ACPI 15 int irq; 16 17 if (!res) { 18 pr_err("ub register gsi, res is null\n"); 19 return -EINVAL; 20 } 21 22 irq = acpi_register_gsi(NULL, hwirq, trigger, polarity); 23 if (irq <= 0) { 24 pr_err("could not register ub gsi hwirq %u\n", hwirq); 25 return -EINVAL; 26 } 27 28 res->name = name; 29 res->start = irq; 30 res->end = irq; 31 res->flags = IORESOURCE_IRQ; 32 #endif 33 return 0; 34 } 35 EXPORT_SYMBOL_GPL(ubrt_register_gsi); 36 37 void ubrt_unregister_gsi(u32 hwirq)
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki