public inbox for virtualization@lists.linux-foundation.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Xuan Zhuo <xuanzhuo@linux.alibaba.com>, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
	"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
	"Jason Wang" <jasowang@redhat.com>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Jiri Pirko" <jiri@resnulli.us>,
	"Alvaro Karsz" <alvaro.karsz@solid-run.com>,
	virtualization@lists.linux.dev
Subject: Re: [PATCH net v9 2/2] virtio-net: correct hdr_len handling for tunnel gso
Date: Thu, 12 Mar 2026 22:28:34 +0800	[thread overview]
Message-ID: <202603122214.8Anoxrmq-lkp@intel.com> (raw)
In-Reply-To: <20260311115414.31243-3-xuanzhuo@linux.alibaba.com>

Hi Xuan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio-net-correct-hdr_len-handling-for-VIRTIO_NET_F_GUEST_HDRLEN/20260311-200042
base:   net/main
patch link:    https://lore.kernel.org/r/20260311115414.31243-3-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net v9 2/2] virtio-net: correct hdr_len handling for tunnel gso
config: i386-randconfig-061-20260312 (https://download.01.org/0day-ci/archive/20260312/202603122214.8Anoxrmq-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260312/202603122214.8Anoxrmq-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/202603122214.8Anoxrmq-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/net/virtio_net.c: note: in included file:
>> include/linux/virtio_net.h:238:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __virtio16 [usertype] hdr_len @@     got restricted __le16 [usertype] @@
   include/linux/virtio_net.h:238:22: sparse:     expected restricted __virtio16 [usertype] hdr_len
   include/linux/virtio_net.h:238:22: sparse:     got restricted __le16 [usertype]

vim +238 include/linux/virtio_net.h

   225	
   226	static inline void virtio_net_set_tnl_hdrlen(const struct sk_buff *skb,
   227						     struct virtio_net_hdr *hdr)
   228	{
   229		u16 hdr_len;
   230	
   231		hdr_len = skb_inner_transport_offset(skb);
   232	
   233		if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
   234			hdr_len += sizeof(struct udphdr);
   235		else
   236			hdr_len += inner_tcp_hdrlen(skb);
   237	
 > 238		hdr->hdr_len = cpu_to_le16(hdr_len);
   239	}
   240	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2026-03-12 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11 11:54 [PATCH net v9 0/2] virtio-net: fix for VIRTIO_NET_F_GUEST_HDRLEN Xuan Zhuo
2026-03-11 11:54 ` [PATCH net v9 1/2] virtio-net: correct hdr_len handling " Xuan Zhuo
2026-03-11 11:54 ` [PATCH net v9 2/2] virtio-net: correct hdr_len handling for tunnel gso Xuan Zhuo
2026-03-12 14:28   ` kernel test robot [this message]

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=202603122214.8Anoxrmq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alvaro.karsz@solid-run.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=edumazet@google.com \
    --cc=eperezma@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=willemdebruijn.kernel@gmail.com \
    --cc=xuanzhuo@linux.alibaba.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