* [openeuler:OLK-6.6 3098/3098] kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for 'bpf_mem_totalcma'
@ 2025-11-05 5:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-05 5:44 UTC (permalink / raw)
To: kernel, GONG Ruiqi; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: fe656d8bc10b5c4ced04a8821909e64adc18a7ef
commit: 9c449e4d9af5b69a1b9fdae9e3f18dc1515635b8 [3098/3098] bpf-rvi: Add bpf_mem_{total,free}cma kfunc
config: x86_64-randconfig-001-20251104 (https://download.01.org/0day-ci/archive/20251105/202511051322.XbdPyERX-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/202511051322.XbdPyERX-lkp@intel.com/reproduce)
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/202511051322.XbdPyERX-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/bpf-rvi/common_kfuncs.c:26:32: warning: no previous prototype for 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes]
26 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p)
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:35:35: warning: no previous prototype for 'bpf_task_active_pid_ns' [-Wmissing-prototypes]
35 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:40:17: warning: no previous prototype for 'bpf_pidns_nr_tasks' [-Wmissing-prototypes]
40 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns)
| ^~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:54:17: warning: no previous prototype for 'bpf_pidns_last_pid' [-Wmissing-prototypes]
54 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns)
| ^~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:83:18: warning: no previous prototype for 'bpf_si_memswinfo' [-Wmissing-prototypes]
83 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi)
| ^~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:93:27: warning: no previous prototype for 'bpf_page_counter_read' [-Wmissing-prototypes]
93 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:103:18: warning: no previous prototype for 'bpf_seq_file_append' [-Wmissing-prototypes]
103 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src)
| ^~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:117:18: warning: no previous prototype for 'bpf_get_boottime_timens' [-Wmissing-prototypes]
117 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:123:27: warning: no previous prototype for 'bpf_get_total_forks' [-Wmissing-prototypes]
123 | __bpf_kfunc unsigned long bpf_get_total_forks(void)
| ^~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:128:26: warning: no previous prototype for 'bpf_nr_running' [-Wmissing-prototypes]
128 | __bpf_kfunc unsigned int bpf_nr_running(void)
| ^~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:133:32: warning: no previous prototype for 'bpf_nr_context_switches' [-Wmissing-prototypes]
133 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:138:26: warning: no previous prototype for 'bpf_nr_iowait' [-Wmissing-prototypes]
138 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
| ^~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:144:26: warning: no previous prototype for 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes]
144 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:149:27: warning: no previous prototype for 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes]
149 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:154:18: warning: no previous prototype for 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes]
154 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:163:27: warning: no previous prototype for 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
163 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:168:27: warning: no previous prototype for 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
168 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:173:27: warning: no previous prototype for 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
173 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for 'bpf_mem_totalcma' [-Wmissing-prototypes]
179 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
| ^~~~~~~~~~~~~~~~
>> kernel/bpf-rvi/common_kfuncs.c:184:27: warning: no previous prototype for 'bpf_mem_freecma' [-Wmissing-prototypes]
184 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
| ^~~~~~~~~~~~~~~
vim +/bpf_mem_totalcma +179 kernel/bpf-rvi/common_kfuncs.c
178
> 179 __bpf_kfunc unsigned long bpf_mem_totalcma(void)
180 {
181 return totalcma_pages;
182 }
183
> 184 __bpf_kfunc unsigned long bpf_mem_freecma(void)
185 {
186 return global_zone_page_state(NR_FREE_CMA_PAGES);
187 }
188
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-05 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 5:44 [openeuler:OLK-6.6 3098/3098] kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for 'bpf_mem_totalcma' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.