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

From: kernel test robot
Date: Thu Nov 07 2024 - 23:22:01 EST


Hi Mina,

kernel test robot noticed the following build errors:

[auto build test ERROR 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: s390-allyesconfig (https://download.01.org/0day-ci/archive/20241108/202411081130.CxioaC2A-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241108/202411081130.CxioaC2A-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/202411081130.CxioaC2A-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from include/linux/skbuff.h:40,
from include/linux/if_ether.h:19,
from arch/s390/include/asm/diag.h:12,
from arch/s390/include/asm/kvm_para.h:25,
from include/uapi/linux/kvm_para.h:37,
from include/linux/kvm_para.h:5,
from include/linux/kvm_host.h:41,
from arch/s390/kernel/asm-offsets.c:11:
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));
| ^~~~~~~~
make[3]: *** [scripts/Makefile.build:102: arch/s390/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1203: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:224: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +/prefetch +179 include/net/netmem.h

173
174 static inline void netmem_prefetch(netmem_ref netmem)
175 {
176 if (netmem_is_net_iov(netmem))
177 return;
178
> 179 prefetch(netmem_to_page(netmem));

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