Re: [PATCH net-next v2 14/22] ovpn: implement peer lookup logic
From: kernel test robot <hidden>
Date: 2024-03-09 10:16:25
Also in:
oe-kbuild-all
Hi Antonio, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Antonio-Quartulli/netlink-add-NLA_POLICY_MAX_LEN-macro/20240304-232835 base: net-next/main patch link: https://lore.kernel.org/r/20240304150914.11444-15-antonio%40openvpn.net patch subject: [PATCH net-next v2 14/22] ovpn: implement peer lookup logic config: sparc-randconfig-r051-20240309 (https://download.01.org/0day-ci/archive/20240309/202403091859.HD1Dnk2H-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240309/202403091859.HD1Dnk2H-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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202403091859.HD1Dnk2H-lkp@intel.com/ (local) All warnings (new ones prefixed by >>): drivers/net/ovpn/peer.c: In function 'ovpn_nexthop_from_rt6': drivers/net/ovpn/peer.c:170:24: error: invalid use of undefined type 'struct rt6_info' 170 | if (!rt || !(rt->rt6i_flags & RTF_GATEWAY)) | ^~ drivers/net/ovpn/peer.c:173:18: error: invalid use of undefined type 'struct rt6_info' 173 | return rt->rt6i_gateway; | ^~
quoted
drivers/net/ovpn/peer.c:174:1: warning: control reaches end of non-void function [-Wreturn-type]
174 | }
| ^
vim +174 drivers/net/ovpn/peer.c
165
166 static struct in6_addr ovpn_nexthop_from_rt6(struct sk_buff *skb)
167 {
168 struct rt6_info *rt = (struct rt6_info *)skb_rtable(skb);
169
> 170 if (!rt || !(rt->rt6i_flags & RTF_GATEWAY))
171 return ipv6_hdr(skb)->daddr;
172
173 return rt->rt6i_gateway;
> 174 }
175
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki