From: kernel test robot <lkp@intel.com>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
hawk@kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, magnus.karlsson@intel.com,
aleksander.lobakin@intel.com, ilias.apalodimas@linaro.org,
toke@redhat.com, lorenzo@kernel.org, kuba@kernel.org,
Maciej Fijalkowski <maciej.fijalkowski@intel.com>,
syzbot+ff145014d6b0ce64a173@syzkaller.appspotmail.com,
Ihor Solodrai <ihor.solodrai@linux.dev>,
Octavian Purdila <tavip@google.com>
Subject: Re: [PATCH v3 bpf 1/2] xdp: introduce xdp_convert_skb_to_buff()
Date: Wed, 22 Oct 2025 22:53:14 +0800 [thread overview]
Message-ID: <202510222209.D4RDn4DI-lkp@intel.com> (raw)
In-Reply-To: <20251022125209.2649287-2-maciej.fijalkowski@intel.com>
Hi Maciej,
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf/master]
url: https://github.com/intel-lab-lkp/linux/commits/Maciej-Fijalkowski/xdp-introduce-xdp_convert_skb_to_buff/20251022-210958
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20251022125209.2649287-2-maciej.fijalkowski%40intel.com
patch subject: [PATCH v3 bpf 1/2] xdp: introduce xdp_convert_skb_to_buff()
config: i386-buildonly-randconfig-002-20251022 (https://download.01.org/0day-ci/archive/20251022/202510222209.D4RDn4DI-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251022/202510222209.D4RDn4DI-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/202510222209.D4RDn4DI-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/select.c:33:
In file included from include/net/busy_poll.h:19:
>> include/net/xdp.h:398:10: error: incompatible pointer to integer conversion assigning to 'u32' (aka 'unsigned int') from 'sk_buff_data_t' (aka 'unsigned char *') [-Wint-conversion]
398 | pkt_len = skb->tail - skb->mac_header;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +398 include/net/xdp.h
386
387 static inline
388 void xdp_convert_skb_to_buff(struct sk_buff *skb, struct xdp_buff *xdp,
389 struct xdp_rxq_info *xdp_rxq)
390 {
391 u32 frame_sz, pkt_len;
392
393 /* SKB "head" area always have tailroom for skb_shared_info */
394 frame_sz = skb_end_pointer(skb) - skb->head;
395 frame_sz += SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
396
397 DEBUG_NET_WARN_ON_ONCE(!skb_mac_header_was_set(skb));
> 398 pkt_len = skb->tail - skb->mac_header;
399
400 xdp_init_buff(xdp, frame_sz, xdp_rxq);
401 xdp_prepare_buff(xdp, skb->head, skb->mac_header, pkt_len, true);
402
403 if (skb_is_nonlinear(skb)) {
404 skb_shinfo(skb)->xdp_frags_size = skb->data_len;
405 xdp_buff_set_frags_flag(xdp);
406 } else {
407 xdp_buff_clear_frags_flag(xdp);
408 }
409
410 xdp->rxq->mem.type = page_pool_page_is_pp(virt_to_head_page(xdp->data)) ?
411 MEM_TYPE_PAGE_POOL : MEM_TYPE_PAGE_SHARED;
412 }
413
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-10-22 14:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 12:52 [PATCH v3 bpf 0/2] xdp: fix page_pool leaks Maciej Fijalkowski
2025-10-22 12:52 ` [PATCH v3 bpf 1/2] xdp: introduce xdp_convert_skb_to_buff() Maciej Fijalkowski
2025-10-22 14:53 ` kernel test robot [this message]
2025-10-22 14:53 ` kernel test robot
2025-10-22 14:54 ` kernel test robot
2025-10-24 8:07 ` kernel test robot
2025-10-24 9:25 ` Toke Høiland-Jørgensen
2025-10-24 17:19 ` Maciej Fijalkowski
2025-10-22 12:52 ` [PATCH v3 bpf 2/2] veth: update mem type in xdp_buff Maciej Fijalkowski
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=202510222209.D4RDn4DI-lkp@intel.com \
--to=lkp@intel.com \
--cc=aleksander.lobakin@intel.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=hawk@kernel.org \
--cc=ihor.solodrai@linux.dev \
--cc=ilias.apalodimas@linaro.org \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lorenzo@kernel.org \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=syzbot+ff145014d6b0ce64a173@syzkaller.appspotmail.com \
--cc=tavip@google.com \
--cc=toke@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).