Re: [PATCH net-next v2 5/5] netmem: add netmem_prefetch

From: kernel test robot
Date: Thu Nov 07 2024 - 21:57:04 EST


Hi Mina,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Mina-Almasry/net-page_pool-rename-page_pool_alloc_netmem-to-_netmems/20241108-052530
base: net-next/main
patch link: https://lore.kernel.org/r/20241107212309.3097362-6-almasrymina%40google.com
patch subject: [PATCH net-next v2 5/5] netmem: add netmem_prefetch
config: parisc-allmodconfig (https://download.01.org/0day-ci/archive/20241108/202411081014.jmz4uf6C-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241108/202411081014.jmz4uf6C-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411081014.jmz4uf6C-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/linux/skbuff.h:40,
from net/ipv4/tcp_vegas.c:37:
include/net/netmem.h: In function 'netmem_prefetch':
include/net/netmem.h:179:9: error: implicit declaration of function 'prefetch' [-Wimplicit-function-declaration]
179 | prefetch(netmem_to_page(netmem));
| ^~~~~~~~
net/ipv4/tcp_vegas.c: At top level:
>> net/ipv4/tcp_vegas.c:46:12: warning: 'gamma' defined but not used [-Wunused-variable]
46 | static int gamma = 1;
| ^~~~~


vim +/gamma +46 net/ipv4/tcp_vegas.c

7752237e9f07b3 Stephen Hemminger 2007-04-23 43
8d3a564da34e58 Doug Leith 2008-12-09 44 static int alpha = 2;
8d3a564da34e58 Doug Leith 2008-12-09 45 static int beta = 4;
8d3a564da34e58 Doug Leith 2008-12-09 @46 static int gamma = 1;
b87d8561d8667d Stephen Hemminger 2005-06-23 47

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki