From: kernel test robot <lkp@intel.com>
To: Vladimir Vdovin <deliran@verdict.gg>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/net/ethernet/intel/ice/ice_txrx_lib.c:618:44: error: request for member 'wb' in something not a structure or union
Date: Wed, 01 Jul 2026 07:40:26 +0200 [thread overview]
Message-ID: <202607010724.hsXtxSGm-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/Vladimir-Vdovin/xdp-let-XDP-programs-assert-the-RX-checksum-over-redirect/20260701-032331
head: 346975980761957300c1f7931bbbf1d97df1d5e6
commit: ce9d0ecf93e84f1be1508b5741e4510dd3df4203 ice: support the rx_csum XDP metadata hint
date: 10 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260701/202607010724.hsXtxSGm-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260701/202607010724.hsXtxSGm-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/202607010724.hsXtxSGm-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/byteorder/little_endian.h:5,
from arch/x86/include/uapi/asm/byteorder.h:5,
from include/asm-generic/qrwlock_types.h:6,
from arch/x86/include/asm/spinlock_types.h:7,
from include/linux/spinlock_types_raw.h:7,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:9,
from include/asm-generic/bug.h:31,
from arch/x86/include/asm/bug.h:195,
from arch/x86/include/asm/alternative.h:9,
from arch/x86/include/asm/atomic.h:7,
from include/linux/atomic.h:7,
from include/linux/filter.h:8,
from drivers/net/ethernet/intel/ice/ice_txrx_lib.c:4:
drivers/net/ethernet/intel/ice/ice_txrx_lib.c: In function 'ice_xdp_rx_csum':
>> drivers/net/ethernet/intel/ice/ice_txrx_lib.c:618:44: warning: dereferencing 'void *' pointer
618 | status0 = le16_to_cpu(xdp_ext->desc->wb.status_error0);
| ^~
include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
drivers/net/ethernet/intel/ice/ice_txrx_lib.c:618:19: note: in expansion of macro 'le16_to_cpu'
618 | status0 = le16_to_cpu(xdp_ext->desc->wb.status_error0);
| ^~~~~~~~~~~
>> drivers/net/ethernet/intel/ice/ice_txrx_lib.c:618:44: error: request for member 'wb' in something not a structure or union
618 | status0 = le16_to_cpu(xdp_ext->desc->wb.status_error0);
| ^~
include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
drivers/net/ethernet/intel/ice/ice_txrx_lib.c:618:19: note: in expansion of macro 'le16_to_cpu'
618 | status0 = le16_to_cpu(xdp_ext->desc->wb.status_error0);
| ^~~~~~~~~~~
vim +/wb +618 drivers/net/ethernet/intel/ice/ice_txrx_lib.c
596
597 /**
598 * ice_xdp_rx_csum - RX checksum XDP hint handler
599 * @ctx: XDP buff pointer
600 * @csum_status: destination for the checksum verdict
601 *
602 * Report whether the hardware validated the packet's L4 checksum, mirroring
603 * the verdict ice_rx_csum() uses for CHECKSUM_UNNECESSARY. Return -ENODATA
604 * when RX checksum offload is disabled, since the status bits are not
605 * meaningful then.
606 */
607 static int ice_xdp_rx_csum(const struct xdp_md *ctx,
608 enum xdp_csum_status *csum_status)
609 {
610 const struct libeth_xdp_buff *xdp_ext = (void *)ctx;
611 struct ice_rx_ring *rx_ring;
612 u16 status0;
613
614 rx_ring = libeth_xdp_buff_to_rq(xdp_ext, typeof(*rx_ring), xdp_rxq);
615 if (!(rx_ring->netdev->features & NETIF_F_RXCSUM))
616 return -ENODATA;
617
> 618 status0 = le16_to_cpu(xdp_ext->desc->wb.status_error0);
619 if ((status0 & BIT(ICE_RX_FLEX_DESC_STATUS0_L3L4P_S)) &&
620 !(status0 & BIT(ICE_RX_FLEX_DESC_STATUS0_XSUM_L4E_S)))
621 *csum_status = XDP_CSUM_VERIFIED;
622 else
623 *csum_status = XDP_CSUM_NONE;
624
625 return 0;
626 }
627
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-01 5:40 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=202607010724.hsXtxSGm-lkp@intel.com \
--to=lkp@intel.com \
--cc=deliran@verdict.gg \
--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.