All of lore.kernel.org
 help / color / mirror / Atom feed
* [isilence:zc/rx-v4 900/922] net/core/page_pool.c:1129:10: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'netmem_ref' (aka 'unsigned long')
@ 2024-02-29 12:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-29 12:51 UTC (permalink / raw)
  To: Pavel Begunkov; +Cc: oe-kbuild-all

tree:   https://github.com/isilence/linux zc/rx-v4
head:   c13f97bb45f13d99fc22c4452f9926dd4a53d6ce
commit: efbfe3177536b21b6ad8117b9f90bd0f46634d98 [900/922] memory-provider: dmabuf devmem memory provider
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240229/202402292053.nlU6W7MK-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402292053.nlU6W7MK-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/202402292053.nlU6W7MK-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/core/page_pool.c:1129:10: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'netmem_ref' (aka 'unsigned long') [-Wint-conversion]
    1129 |                 return NULL;
         |                        ^~~~
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |              ^~~~~~~~~~~
   net/core/page_pool.c:1146:9: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'netmem_ref' (aka 'unsigned long') [-Wint-conversion]
    1146 |         return NULL;
         |                ^~~~
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |              ^~~~~~~~~~~
   2 errors generated.


vim +1129 net/core/page_pool.c

  1118	
  1119	static netmem_ref mp_dmabuf_devmem_alloc_pages(struct page_pool *pool,
  1120						       gfp_t gfp)
  1121	{
  1122		struct netdev_dmabuf_binding *binding = pool->mp_priv;
  1123		netmem_ref netmem;
  1124		struct net_iov *niov;
  1125		dma_addr_t dma_addr;
  1126	
  1127		niov = netdev_alloc_dmabuf(binding);
  1128		if (!niov)
> 1129			return NULL;
  1130	
  1131		dma_addr = net_iov_dma_addr(niov);
  1132	
  1133		netmem = net_iov_to_netmem(niov);
  1134	
  1135		page_pool_set_pp_info(pool, netmem);
  1136	
  1137		if (page_pool_set_dma_addr_netmem(netmem, dma_addr))
  1138			goto err_free;
  1139	
  1140		pool->pages_state_hold_cnt++;
  1141		trace_page_pool_state_hold(pool, netmem, pool->pages_state_hold_cnt);
  1142		return netmem;
  1143	
  1144	err_free:
  1145		netdev_free_dmabuf(niov);
  1146		return NULL;
  1147	}
  1148	

-- 
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:[~2024-02-29 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 12:51 [isilence:zc/rx-v4 900/922] net/core/page_pool.c:1129:10: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'netmem_ref' (aka 'unsigned long') 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.