tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: b2b8512ca97108929f3aca5405875d91577b8c80 commit: c4e5391b74ba345c143a4af707330ac9b33aac71 [3098/3098] bpf-rvi: Add bpf_mem_vmalloc_{used,total} kfunc config: x86_64-randconfig-001-20251104 (https://download.01.org/0day-ci/archive/20251105/202511052209.ExfiyFp7-lkp@i...) 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/202511052209.ExfiyFp7-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/202511052209.ExfiyFp7-lkp@intel.com/ All warnings (new ones prefixed by >>): kernel/bpf-rvi/common_kfuncs.c:29:32: warning: no previous prototype for 'bpf_mem_cgroup_from_task' [-Wmissing-prototypes] 29 | __bpf_kfunc struct mem_cgroup *bpf_mem_cgroup_from_task(struct task_struct *p) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:38:35: warning: no previous prototype for 'bpf_task_active_pid_ns' [-Wmissing-prototypes] 38 | __bpf_kfunc struct pid_namespace *bpf_task_active_pid_ns(struct task_struct *task) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:43:17: warning: no previous prototype for 'bpf_pidns_nr_tasks' [-Wmissing-prototypes] 43 | __bpf_kfunc u64 bpf_pidns_nr_tasks(struct pid_namespace *ns) | ^~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:57:17: warning: no previous prototype for 'bpf_pidns_last_pid' [-Wmissing-prototypes] 57 | __bpf_kfunc u32 bpf_pidns_last_pid(struct pid_namespace *ns) | ^~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:86:18: warning: no previous prototype for 'bpf_si_memswinfo' [-Wmissing-prototypes] 86 | __bpf_kfunc void bpf_si_memswinfo(struct bpf_sysinfo *bsi) | ^~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:96:27: warning: no previous prototype for 'bpf_page_counter_read' [-Wmissing-prototypes] 96 | __bpf_kfunc unsigned long bpf_page_counter_read(struct page_counter *counter) | ^~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:106:18: warning: no previous prototype for 'bpf_seq_file_append' [-Wmissing-prototypes] 106 | __bpf_kfunc void bpf_seq_file_append(struct seq_file *dst, struct seq_file *src) | ^~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:120:18: warning: no previous prototype for 'bpf_get_boottime_timens' [-Wmissing-prototypes] 120 | __bpf_kfunc void bpf_get_boottime_timens(struct task_struct *tsk, struct timespec64 *boottime) | ^~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:126:27: warning: no previous prototype for 'bpf_get_total_forks' [-Wmissing-prototypes] 126 | __bpf_kfunc unsigned long bpf_get_total_forks(void) | ^~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:131:26: warning: no previous prototype for 'bpf_nr_running' [-Wmissing-prototypes] 131 | __bpf_kfunc unsigned int bpf_nr_running(void) | ^~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:136:32: warning: no previous prototype for 'bpf_nr_context_switches' [-Wmissing-prototypes] 136 | __bpf_kfunc unsigned long long bpf_nr_context_switches(void) | ^~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:141:26: warning: no previous prototype for 'bpf_nr_iowait' [-Wmissing-prototypes] 141 | __bpf_kfunc unsigned int bpf_nr_iowait(void) | ^~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:147:26: warning: no previous prototype for 'bpf_kstat_softirqs_cpu' [-Wmissing-prototypes] 147 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:152:27: warning: no previous prototype for 'bpf_kstat_cpu_irqs_sum' [-Wmissing-prototypes] 152 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:157:18: warning: no previous prototype for 'bpf_kcpustat_cpu_fetch' [-Wmissing-prototypes] 157 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:166:27: warning: no previous prototype for 'bpf_mem_file_hugepage' [-Wmissing-prototypes] 166 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void) | ^~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:171:27: warning: no previous prototype for 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes] 171 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:176:27: warning: no previous prototype for 'bpf_mem_kreclaimable' [-Wmissing-prototypes] 176 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void) | ^~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:182:27: warning: no previous prototype for 'bpf_mem_totalcma' [-Wmissing-prototypes] 182 | __bpf_kfunc unsigned long bpf_mem_totalcma(void) | ^~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:187:27: warning: no previous prototype for 'bpf_mem_freecma' [-Wmissing-prototypes] 187 | __bpf_kfunc unsigned long bpf_mem_freecma(void) | ^~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:202:17: warning: no previous prototype for 'bpf_hugetlb_report_meminfo' [-Wmissing-prototypes] 202 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:235:27: warning: no previous prototype for 'bpf_mem_failure' [-Wmissing-prototypes] 235 | __bpf_kfunc unsigned long bpf_mem_failure(void) | ^~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:246:27: warning: no previous prototype for 'bpf_mem_percpu' [-Wmissing-prototypes] 246 | __bpf_kfunc unsigned long bpf_mem_percpu(void) | ^~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:251:27: warning: no previous prototype for 'bpf_mem_commit_limit' [-Wmissing-prototypes] 251 | __bpf_kfunc unsigned long bpf_mem_commit_limit(void) | ^~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:255:27: warning: no previous prototype for 'bpf_mem_committed' [-Wmissing-prototypes] 255 | __bpf_kfunc unsigned long bpf_mem_committed(void) | ^~~~~~~~~~~~~~~~~
kernel/bpf-rvi/common_kfuncs.c:260:27: warning: no previous prototype for 'bpf_mem_vmalloc_used' [-Wmissing-prototypes] 260 | __bpf_kfunc unsigned long bpf_mem_vmalloc_used(void) | ^~~~~~~~~~~~~~~~~~~~ kernel/bpf-rvi/common_kfuncs.c:265:27: warning: no previous prototype for 'bpf_mem_vmalloc_total' [-Wmissing-prototypes] 265 | __bpf_kfunc unsigned long bpf_mem_vmalloc_total(void) | ^~~~~~~~~~~~~~~~~~~~~
vim +/bpf_mem_vmalloc_used +260 kernel/bpf-rvi/common_kfuncs.c 259
260 __bpf_kfunc unsigned long bpf_mem_vmalloc_used(void) 261 { 262 return vmalloc_nr_pages(); 263 } 264 265 __bpf_kfunc unsigned long bpf_mem_vmalloc_total(void) 266 { 267 return (unsigned long)VMALLOC_TOTAL >> 10; 268 } 269
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki