[openeuler:OLK-6.6 2331/2331] arch/x86/kernel/cpu/bpf-rvi.c:129:25: warning: no previous prototype for function 'bpf_arch_flags'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: c7103b690d364f20ccabd4acc558fa4a4b293364 [2331/2331] bpf: Add bpf_arch_flags kunc for x86 config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250529/202505290337.UpMv109S-lkp@i...) compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505290337.UpMv109S-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/202505290337.UpMv109S-lkp@intel.com/ All warnings (new ones prefixed by >>):
arch/x86/kernel/cpu/bpf-rvi.c:129:25: warning: no previous prototype for function 'bpf_arch_flags' [-Wmissing-prototypes] 129 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ arch/x86/kernel/cpu/bpf-rvi.c:129:19: note: declare 'static' if the function is not intended to be used outside of this translation unit 129 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ | static 1 warning generated.
vim +/bpf_arch_flags +129 arch/x86/kernel/cpu/bpf-rvi.c 128
129 __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) 130 { 131 switch (t) { 132 case X86_CAP: 133 return x86_cap_flags[i]; 134 case X86_BUG: 135 return x86_bug_flags[i]; 136 case X86_POWER: 137 return x86_power_flags[i]; 138 case X86_POWER_SIZE: 139 return (void *)ARRAY_SIZE(x86_power_flags); 140 default: 141 return NULL; 142 } 143 } 144
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot