Hi Xuan, kernel test robot noticed the following build errors:
[auto build test ERROR 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/20251119-135650 base: net/main patch link: https://lore.kernel.org/r/20251119055522.617-3-xuanzhuo%40linux.alibaba.com patch subject: [PATCH net v6 2/2] virtio-net: correct hdr_len handling for tunnel gso config: arm-jornada720_defconfig (https://download.01.org/0day-ci/archive/20251120/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251120/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from net/packet/af_packet.c:86: >> include/linux/virtio_net.h:218:7: error: use of undeclared identifier 'sinfo' 218 | if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL | | ^~~~~ 1 error generated. vim +/sinfo +218 include/linux/virtio_net.h 209 210 static inline void virtio_net_set_hdrlen(const struct sk_buff *skb, 211 struct virtio_net_hdr *hdr, 212 bool little_endian, 213 bool guest_hdrlen) 214 { 215 u16 hdr_len; 216 217 if (guest_hdrlen) { > 218 if (sinfo->gso_type & (SKB_GSO_UDP_TUNNEL | 219 SKB_GSO_UDP_TUNNEL_CSUM)) { 220 hdr_len = skb_inner_transport_offset(skb); 221 222 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4) 223 hdr_len += sizeof(struct udphdr); 224 else 225 hdr_len += inner_tcp_hdrlen(skb); 226 } else { 227 hdr_len = skb_transport_offset(skb); 228 229 if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4) 230 hdr_len += sizeof(struct udphdr); 231 else 232 hdr_len += tcp_hdrlen(skb); 233 } 234 } else { 235 /* This is a hint as to how much should be linear. */ 236 hdr_len = skb_headlen(skb); 237 } 238 239 hdr->hdr_len = __cpu_to_virtio16(little_endian, hdr_len); 240 } 241 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
