Skip to contentSkip to conversation

drivers/net/geneve.c:778:12: error: no member named 'local_ip6' in 'struct udp_port_cfg'

PATCH kernel test robot 2 participants 2 messages Jun 6

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6e845bcb78c95af935094040bd4edc3c2b6dd784
commit: afabbb56a7262979a75259e2710019aa8ced3e8a [10754/11755] geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.
config: hexagon-randconfig-001-20260606 (https://download.01.org/0day-ci/archive/20260607/[email protected]/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/20260607/[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 >>):

>> drivers/net/geneve.c:778:12: error: no member named 'local_ip6' in 'struct udp_port_cfg'
     778 |                 udp_conf.local_ip6 = info->key.u.ipv6.src;
         |                 ~~~~~~~~ ^

1 error generated.

vim +778 drivers/net/geneve.c

763
764 static struct sock *geneve_create_sock(struct net *net,
765 struct geneve_dev *geneve, bool ipv6)
766 {
767 struct ip_tunnel_info *info = &geneve->cfg.info;
768 struct udp_port_cfg udp_conf;
769 struct socket *sock;
770 int err;
771
772 memset(&udp_conf, 0, sizeof(udp_conf));
773
774 if (ipv6) {
775 udp_conf.family = AF_INET6;
776 udp_conf.ipv6_v6only = 1;
777 udp_conf.use_udp6_rx_checksums = geneve->cfg.use_udp6_rx_checksums;

 > 778			udp_conf.local_ip6 = info->key.u.ipv6.src;

779 } else {
780 udp_conf.family = AF_INET;
781 udp_conf.local_ip.s_addr = info->key.u.ipv4.src;
782 }
783
784 udp_conf.local_udp_port = info->key.tp_dst;
785
786 /* Open UDP socket */
787 err = udp_sock_create(net, &udp_conf, &sock);
788 if (err < 0)
789 return ERR_PTR(err);
790
791 udp_allow_gso(sock->sk);
792 return sock->sk;
793 }
794

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

#1 lore raw
Quoted 13 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6e845bcb78c95af935094040bd4edc3c2b6dd784
commit: afabbb56a7262979a75259e2710019aa8ced3e8a [10754/11755] geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.
config: hexagon-randconfig-001-20260606 (https://download.01.org/0day-ci/archive/20260607/[email protected]/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/20260607/[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]/

Quoted 6 lines

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/net/geneve.c:778:12: error: no member named 'local_ip6' in 'struct udp_port_cfg'

     778 |                 udp_conf.local_ip6 = info->key.u.ipv6.src;
         |                 ~~~~~~~~ ^

1 error generated.

My bad, posted the fix.
https://lore.kernel.org/netdev/[email protected]/T/#u

Thanks