
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: b3aa368c1f9f8f3acee4703cfebb30e7a909df9f [2679/2679] bpf-rvi: Add bpf_si_memswinfo() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150337.G6kzMMhf-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/202508150337.G6kzMMhf-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/202508150337.G6kzMMhf-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:18:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 18 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:18:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 18 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static kernel/bpf-rvi/common_kfuncs.c:27:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 27 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:27:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 27 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static kernel/bpf-rvi/common_kfuncs.c:32:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 32 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:32:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 32 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:46:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 46 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:46:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 46 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static
kernel/bpf-rvi/common_kfuncs.c:75:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] 75 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ kernel/bpf-rvi/common_kfuncs.c:75:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 75 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ | static 5 warnings generated.
vim +/bpf_si_memswinfo +75 kernel/bpf-rvi/common_kfuncs.c 74
75 __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) 76 { 77 struct sysinfo *si = (struct sysinfo *)bsi; 78 79 if (si) { 80 si_meminfo(si); 81 si_swapinfo(si); 82 } 83 } 84
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki