From: kernel test robot <lkp@intel.com>
To: Pavel Begunkov <asml.silence@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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')
Date: Thu, 29 Feb 2024 20:51:58 +0800 [thread overview]
Message-ID: <202402292053.nlU6W7MK-lkp@intel.com> (raw)
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
reply other threads:[~2024-02-29 12:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202402292053.nlU6W7MK-lkp@intel.com \
--to=lkp@intel.com \
--cc=asml.silence@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.