Hi Yingnan,

kernel test robot noticed the following build errors:

[auto build test ERROR on net/main]

url:    
https://github.com/intel-lab-lkp/linux/commits/Yingnan-Zhang/ipvs-fix-MTU-check-for-GSO-packets-in-tunnel-mode/20260407-141549
base:   net/main
patch link:    
https://lore.kernel.org/r/tencent_CA2C1C219C99D315086BE55E8654AF7E6009%40qq.com
patch subject: [PATCH net v2] ipvs: fix MTU check for GSO packets in tunnel mode
config: x86_64-rhel-9.4-ltp 
(https://download.01.org/0day-ci/archive/20260407/[email protected]/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/20260407/[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 error/warnings (new ones prefixed by >>):

>> net/netfilter/ipvs/ip_vs_xmit.c:115:11: error: expected identifier or '(' 
>> before 'else'
     115 |         } else if (skb->len > mtu &&
         |           ^~~~
>> net/netfilter/ipvs/ip_vs_xmit.c:119:9: error: expected identifier or '(' 
>> before 'return'
     119 |         return false;
         |         ^~~~~~
>> net/netfilter/ipvs/ip_vs_xmit.c:120:1: error: expected identifier or '(' 
>> before '}' token
     120 | }
         | ^
   net/netfilter/ipvs/ip_vs_xmit.c: In function '__mtu_check_toobig_v6':
>> net/netfilter/ipvs/ip_vs_xmit.c:115:9: warning: control reaches end of 
>> non-void function [-Wreturn-type]
     115 |         } else if (skb->len > mtu &&
         |         ^


vim +115 net/netfilter/ipvs/ip_vs_xmit.c

   104  
   105  static inline bool
   106  __mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu)
   107  {
   108          if (IP6CB(skb)->frag_max_size) {
   109                  /* frag_max_size tell us that, this packet have been
   110                   * defragmented by netfilter IPv6 conntrack module.
   111                   */
   112                  if (IP6CB(skb)->frag_max_size > mtu)
   113                          return true; /* largest fragment violate MTU */
   114          }
 > 115          } else if (skb->len > mtu &&
   116                     !(skb_is_gso(skb) && 
skb_gso_validate_network_len(skb, mtu))) {
   117                  return true; /* Packet size violate MTU size */
   118          }
 > 119          return false;
 > 120  }
   121  

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

Reply via email to