[openeuler:OLK-6.6 2679/2679] arch/arm64/kernel/bpf-rvi.c:28:25: warning: no previous prototype for function 'bpf_arch_flags'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 34f3240c8b4a8e1f0531d169c96420eef2e0c8ac [2679/2679] bpf-rvi: arm64: Add bpf_arch_flags kunc for arm64 config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150218.QwK6mXQc-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/20250815/202508150218.QwK6mXQc-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/202508150218.QwK6mXQc-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/arm64/kernel/bpf-rvi.c:14:6: warning: no previous prototype for function 'bpf_arm64_cpu_have_feature' [-Wmissing-prototypes] 14 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ arch/arm64/kernel/bpf-rvi.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 14 | bool bpf_arm64_cpu_have_feature(unsigned int num) | ^ | static
arch/arm64/kernel/bpf-rvi.c:28:25: warning: no previous prototype for function 'bpf_arch_flags' [-Wmissing-prototypes] 28 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ arch/arm64/kernel/bpf-rvi.c:28:19: note: declare 'static' if the function is not intended to be used outside of this translation unit 28 | __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) | ^ | static 2 warnings generated.
vim +/bpf_arch_flags +28 arch/arm64/kernel/bpf-rvi.c 27
28 __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) 29 { 30 switch (t) { 31 case ARM64_HWCAP: 32 return hwcap_str[i]; 33 case ARM64_HWCAP_SIZE: 34 return (void *)ARRAY_SIZE(hwcap_str); 35 case ARM64_COMPAT_HWCAP: 36 return compat_hwcap_str[i]; 37 case ARM64_COMPAT_HWCAP_SIZE: 38 return (void *)ARRAY_SIZE(compat_hwcap_str); 39 case ARM64_COMPAT_HWCAP2: 40 return compat_hwcap2_str[i]; 41 case ARM64_COMPAT_HWCAP2_SIZE: 42 return (void *)ARRAY_SIZE(compat_hwcap2_str); 43 default: 44 return NULL; 45 } 46 } 47
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot