[openeuler:OLK-6.6 3075/3075] drivers/ub/ubus/interrupt.c:43:6: warning: no previous prototype for function 'ub_intr_init'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d92229e139bee35ce8e87e18db2e548549c94afd commit: 1faf759d302206a8387d685808928c228c9aa306 [3075/3075] ub:ubus: Add MSI capability for UBUS driver config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251107/202511071322.Zrq7tHrZ-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/20251107/202511071322.Zrq7tHrZ-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/202511071322.Zrq7tHrZ-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubus/interrupt.c:43:6: warning: no previous prototype for function 'ub_intr_init' [-Wmissing-prototypes] 43 | void ub_intr_init(struct ub_entity *uent) | ^ drivers/ub/ubus/interrupt.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 43 | void ub_intr_init(struct ub_entity *uent) | ^ | static 1 warning generated.
vim +/ub_intr_init +43 drivers/ub/ubus/interrupt.c 42
43 void ub_intr_init(struct ub_entity *uent) 44 { 45 if (uent->cfg1_bitmap[0] & UB_INT_TYPE2_CAP_BIT) 46 uent->intr_type1 = 0; 47 else if (uent->cfg1_bitmap[0] & UB_INT_TYPE1_CAP_BIT) 48 uent->intr_type1 = 1; 49 else 50 uent->no_intr = 1; 51 } 52
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot