From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, GONG Ruiqi <gongruiqi1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 3098/3098] kernel/bpf-rvi/common_kfuncs.c:179:27: warning: no previous prototype for 'bpf_mem_totalcma'
Date: Wed, 5 Nov 2025 13:44:24 +0800 [thread overview]
Message-ID: <202511051322.XbdPyERX-lkp@intel.com> (raw)
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
reply other threads:[~2025-11-05 5:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202511051322.XbdPyERX-lkp@intel.com \
--to=lkp@intel.com \
--cc=gongruiqi1@huawei.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.