[openeuler:OLK-6.6 2679/2679] fs/proc/stat.c:234:18: warning: no previous prototype for function 'bpf_show_all_irqs'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 43d8c124ec4624389b14d42595e5f0195e3e5a1d commit: 19895b9974c36318281e4e18131a2cfb43543ffd [2679/2679] bpf-rvi: Add stat-related misc kfuncs config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508150918.bmh8cyyk-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/202508150918.bmh8cyyk-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/202508150918.bmh8cyyk-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/proc/stat.c:224:17: warning: no previous prototype for function 'bpf_get_idle_time' [-Wmissing-prototypes] 224 | __bpf_kfunc u64 bpf_get_idle_time(struct kernel_cpustat *kcs, int cpu) | ^ fs/proc/stat.c:224:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 224 | __bpf_kfunc u64 bpf_get_idle_time(struct kernel_cpustat *kcs, int cpu) | ^ | static fs/proc/stat.c:229:17: warning: no previous prototype for function 'bpf_get_iowait_time' [-Wmissing-prototypes] 229 | __bpf_kfunc u64 bpf_get_iowait_time(struct kernel_cpustat *kcs, int cpu) | ^ fs/proc/stat.c:229:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 229 | __bpf_kfunc u64 bpf_get_iowait_time(struct kernel_cpustat *kcs, int cpu) | ^ | static
fs/proc/stat.c:234:18: warning: no previous prototype for function 'bpf_show_all_irqs' [-Wmissing-prototypes] 234 | __bpf_kfunc void bpf_show_all_irqs(struct seq_file *p) | ^ fs/proc/stat.c:234:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 234 | __bpf_kfunc void bpf_show_all_irqs(struct seq_file *p) | ^ | static 3 warnings generated. -- kernel/bpf-rvi/common_kfuncs.c:24:32: warning: no previous prototype for function 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 24 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ kernel/bpf-rvi/common_kfuncs.c:24:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 24 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^ | static kernel/bpf-rvi/common_kfuncs.c:33:35: warning: no previous prototype for function 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 33 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ kernel/bpf-rvi/common_kfuncs.c:33:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 33 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^ | static kernel/bpf-rvi/common_kfuncs.c:38:17: warning: no previous prototype for function 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 38 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:38:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 38 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:52:17: warning: no previous prototype for function 'bpf_pidns_last_pid' [-Wmissing-prototypes] 52 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ kernel/bpf-rvi/common_kfuncs.c:52:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 52 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^ | static kernel/bpf-rvi/common_kfuncs.c:81:18: warning: no previous prototype for function 'bpf_si_memswinfo' [-Wmissing-prototypes] 81 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ kernel/bpf-rvi/common_kfuncs.c:81:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 81 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^ | static kernel/bpf-rvi/common_kfuncs.c:91:27: warning: no previous prototype for function 'bpf_page_counter_read' [-Wmissing-prototypes] 91 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ kernel/bpf-rvi/common_kfuncs.c:91:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 91 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^ | static kernel/bpf-rvi/common_kfuncs.c:101:18: warning: no previous prototype for function 'bpf_seq_file_append' [-Wmissing-prototypes] 101 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) | ^ kernel/bpf-rvi/common_kfuncs.c:101:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 101 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) | ^ | static kernel/bpf-rvi/common_kfuncs.c:115:18: warning: no previous prototype for function 'bpf_get_boottime_timens' [-Wmissing-prototypes] 115 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime) | ^ kernel/bpf-rvi/common_kfuncs.c:115:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 115 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime) | ^ | static kernel/bpf-rvi/common_kfuncs.c:121:27: warning: no previous prototype for function 'bpf_get_total_forks' [-Wmissing-prototypes] 121 | __bpf_kfunc unsigned long bpf_get_total_forks(void) | ^ kernel/bpf-rvi/common_kfuncs.c:121:13: note: declare 'static' if the function is not intended to be used outside of this translation unit 121 | __bpf_kfunc unsigned long bpf_get_total_forks(void) | ^ | static 9 warnings generated.
vim +/bpf_show_all_irqs +234 fs/proc/stat.c 233
234 __bpf_kfunc void bpf_show_all_irqs(struct seq_file *p) 235 { 236 show_all_irqs(p); 237 } 238
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot