All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:260:27: warning: no previous prototype for function 'bpf_mem_vmalloc_used'
@ 2025-08-15 19:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-15 19:10 UTC (permalink / raw)
  To: kernel, GONG Ruiqi; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   54d96ebb93c9ff0573fe16586a47778ebe26de32
commit: c4e5391b74ba345c143a4af707330ac9b33aac71 [2679/2679] bpf-rvi: Add bpf_mem_vmalloc_{used,total} kfunc
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250816/202508160334.oBJoPyq0-lkp@intel.com/config)
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/20250816/202508160334.oBJoPyq0-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/202508160334.oBJoPyq0-lkp@intel.com/

All warnings (new ones prefixed by >>):

         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:141:26: warning: no previous prototype for function 'bpf_nr_iowait' [-Wmissing-prototypes]
     141 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
         |                          ^
   kernel/bpf-rvi/common_kfuncs.c:141:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     141 | __bpf_kfunc unsigned int bpf_nr_iowait(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:147:26: warning: no previous prototype for function '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:147:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     147 | __bpf_kfunc unsigned int bpf_kstat_softirqs_cpu(unsigned int irq, int cpu)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:152:27: warning: no previous prototype for function '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:152:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     152 | __bpf_kfunc unsigned long bpf_kstat_cpu_irqs_sum(unsigned int cpu)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:157:18: warning: no previous prototype for function '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:157:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     157 | __bpf_kfunc void bpf_kcpustat_cpu_fetch(struct kernel_cpustat *dst, int cpu)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:166:27: warning: no previous prototype for function 'bpf_mem_file_hugepage' [-Wmissing-prototypes]
     166 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:166:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     166 | __bpf_kfunc unsigned long bpf_mem_file_hugepage(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:171:27: warning: no previous prototype for function 'bpf_mem_file_pmdmapped' [-Wmissing-prototypes]
     171 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:171:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     171 | __bpf_kfunc unsigned long bpf_mem_file_pmdmapped(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:176:27: warning: no previous prototype for function 'bpf_mem_kreclaimable' [-Wmissing-prototypes]
     176 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:176:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     176 | __bpf_kfunc unsigned long bpf_mem_kreclaimable(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:182:27: warning: no previous prototype for function 'bpf_mem_totalcma' [-Wmissing-prototypes]
     182 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:182:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     182 | __bpf_kfunc unsigned long bpf_mem_totalcma(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:187:27: warning: no previous prototype for function 'bpf_mem_freecma' [-Wmissing-prototypes]
     187 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:187:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     187 | __bpf_kfunc unsigned long bpf_mem_freecma(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:202:17: warning: no previous prototype for function '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:202:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     202 | __bpf_kfunc int bpf_hugetlb_report_meminfo(struct bpf_mem_hugepage *hugepage_info)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:240:27: warning: no previous prototype for function 'bpf_mem_failure' [-Wmissing-prototypes]
     240 | __bpf_kfunc unsigned long bpf_mem_failure(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:240:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     240 | __bpf_kfunc unsigned long bpf_mem_failure(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:246:27: warning: no previous prototype for function 'bpf_mem_percpu' [-Wmissing-prototypes]
     246 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:246:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     246 | __bpf_kfunc unsigned long bpf_mem_percpu(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:251:27: warning: no previous prototype for function 'bpf_mem_commit_limit' [-Wmissing-prototypes]
     251 | __bpf_kfunc unsigned long bpf_mem_commit_limit(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:251:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     251 | __bpf_kfunc unsigned long bpf_mem_commit_limit(void)
         |             ^
         |             static 
   kernel/bpf-rvi/common_kfuncs.c:255:27: warning: no previous prototype for function 'bpf_mem_committed' [-Wmissing-prototypes]
     255 | __bpf_kfunc unsigned long bpf_mem_committed(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:255:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     255 | __bpf_kfunc unsigned long bpf_mem_committed(void)
         |             ^
         |             static 
>> kernel/bpf-rvi/common_kfuncs.c:260:27: warning: no previous prototype for function 'bpf_mem_vmalloc_used' [-Wmissing-prototypes]
     260 | __bpf_kfunc unsigned long bpf_mem_vmalloc_used(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:260:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     260 | __bpf_kfunc unsigned long bpf_mem_vmalloc_used(void)
         |             ^
         |             static 
>> kernel/bpf-rvi/common_kfuncs.c:265:27: warning: no previous prototype for function 'bpf_mem_vmalloc_total' [-Wmissing-prototypes]
     265 | __bpf_kfunc unsigned long bpf_mem_vmalloc_total(void)
         |                           ^
   kernel/bpf-rvi/common_kfuncs.c:265:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
     265 | __bpf_kfunc unsigned long bpf_mem_vmalloc_total(void)
         |             ^
         |             static 
   27 warnings generated.


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-15 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 19:10 [openeuler:OLK-6.6 2679/2679] kernel/bpf-rvi/common_kfuncs.c:260:27: warning: no previous prototype for function 'bpf_mem_vmalloc_used' 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.