From: kernel test robot <lkp@intel.com>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Daniel Borkmann <daniel@iogearbox.net>
Subject: [cilium:pr/netkit-iouring 11/13] drivers/net/netkit.c:396:13: error: no member named 'pool' in 'struct netdev_rx_queue'
Date: Mon, 15 Sep 2025 22:25:27 +0800 [thread overview]
Message-ID: <202509152205.rMP7qLkG-lkp@intel.com> (raw)
tree: https://github.com/cilium/linux.git pr/netkit-iouring
head: 2349bbb5912e0d52fba70db82bfbf45064f824f6
commit: 75c1fb3cba77335698d2293e139596fb67f3a330 [11/13] netkit: Implement ndo_queue_xsk_pool_{register,get,clear} operations
config: powerpc-randconfig-003-20250915 (https://download.01.org/0day-ci/archive/20250915/202509152205.rMP7qLkG-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 65ad21d730d25789454d18e811f8ff5db79cb5d4)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250915/202509152205.rMP7qLkG-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/202509152205.rMP7qLkG-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <built-in>:3:
In file included from include/linux/compiler_types.h:171:
include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
28 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:351:9: note: previous definition is here
351 | #define __SANITIZE_ADDRESS__ 1
| ^
drivers/net/netkit.c:390:6: error: call to undeclared function 'xsk_get_pool_from_qid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
390 | if (xsk_get_pool_from_qid(phys, phys_idx))
| ^
drivers/net/netkit.c:393:6: error: incomplete definition of type 'struct xsk_buff_pool'
393 | pool->netdev = phys;
| ~~~~^
include/linux/netdevice.h:1007:11: note: forward declaration of 'struct xsk_buff_pool'
1007 | struct xsk_buff_pool *pool;
| ^
drivers/net/netkit.c:394:6: error: incomplete definition of type 'struct xsk_buff_pool'
394 | pool->queue_id = phys_idx;
| ~~~~^
include/linux/netdevice.h:1007:11: note: forward declaration of 'struct xsk_buff_pool'
1007 | struct xsk_buff_pool *pool;
| ^
>> drivers/net/netkit.c:396:13: error: no member named 'pool' in 'struct netdev_rx_queue'
396 | rxq->peer->pool = pool;
| ~~~~~~~~~ ^
drivers/net/netkit.c:412:20: error: no member named 'pool' in 'struct netdev_rx_queue'
412 | return rxq->peer->pool;
| ~~~~~~~~~ ^
drivers/net/netkit.c:426:13: error: no member named 'pool' in 'struct netdev_rx_queue'
426 | rxq->peer->pool = NULL;
| ~~~~~~~~~ ^
1 warning and 6 errors generated.
vim +396 drivers/net/netkit.c
372
373 static int netkit_queue_xsk_pool_register(struct net_device *dev,
374 struct xsk_buff_pool *pool, int idx)
375 {
376 struct netdev_rx_queue *rxq;
377 struct net_device *phys;
378 int phys_idx;
379
380 if (idx >= dev->real_num_rx_queues)
381 return -EINVAL;
382
383 rxq = __netif_get_rx_queue(dev, idx);
384 if (!rxq->peer)
385 return -EOPNOTSUPP;
386
387 phys = rxq->peer->dev;
388 phys_idx = get_netdev_rx_queue_index(rxq->peer);
389
390 if (xsk_get_pool_from_qid(phys, phys_idx))
391 return -EBUSY;
392
393 pool->netdev = phys;
394 pool->queue_id = phys_idx;
395
> 396 rxq->peer->pool = pool;
397 return 0;
398 }
399
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-09-15 14:25 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=202509152205.rMP7qLkG-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@iogearbox.net \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox