On Mon, Jul 13, 2020 at 9:14 PM kernel test robot <lkp(a)intel.com> wrote:
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: da9bbf0598c9e66b8a46ceabaa6172596795acf2 [6540/7824] xfrm: interface: support
IPIP and IPIP6 tunnels processing with .cb_handler
config: ia64-randconfig-r002-20200713 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout da9bbf0598c9e66b8a46ceabaa6172596795acf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function
`elf_core_write_extra_phdrs':
arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function
`elf_core_write_extra_data':
arch/ia64/kernel/elfcore.c:55: undefined reference to `dump_emit'
ia64-linux-ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_fini':
>> net/xfrm/xfrm_interface.c:900: undefined reference to
`xfrm4_tunnel_deregister'
>> ia64-linux-ld: net/xfrm/xfrm_interface.c:901: undefined reference to
`xfrm4_tunnel_deregister'
ia64-linux-ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_init':
>> net/xfrm/xfrm_interface.c:873: undefined reference to
`xfrm4_tunnel_register'
>> ia64-linux-ld: net/xfrm/xfrm_interface.c:876: undefined reference to
`xfrm4_tunnel_register'
ia64-linux-ld: net/xfrm/xfrm_interface.c:885: undefined reference to
`xfrm4_tunnel_deregister'
vim +900 net/xfrm/xfrm_interface.c
858
859 static int __init xfrmi4_init(void)
860 {
861 int err;
862
863 err = xfrm4_protocol_register(&xfrmi_esp4_protocol, IPPROTO_ESP);
864 if (err < 0)
865 goto xfrm_proto_esp_failed;
866 err = xfrm4_protocol_register(&xfrmi_ah4_protocol, IPPROTO_AH);
867 if (err < 0)
868 goto xfrm_proto_ah_failed;
869 err = xfrm4_protocol_register(&xfrmi_ipcomp4_protocol,
IPPROTO_COMP);
870 if (err < 0)
871 goto xfrm_proto_comp_failed;
872 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
This can be fixed by using
IS_REACHABLE()
> > 873 err = xfrm4_tunnel_register(&xfrmi_ipip_handler, AF_INET);
> 874 if (err < 0)
> 875 goto xfrm_tunnel_ipip_failed;
> > 876 err = xfrm4_tunnel_register(&xfrmi_ipip_handler, AF_INET6);
> 877 if (err < 0)
> 878 goto xfrm_tunnel_ipip6_failed;
> 879 #endif
> 880
> 881 return 0;
> 882
> 883 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
> 884 xfrm_tunnel_ipip6_failed:
> 885 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET);
> 886 xfrm_tunnel_ipip_failed:
> 887 xfrm4_protocol_deregister(&xfrmi_ipcomp4_protocol,
IPPROTO_COMP);
> 888 #endif
> 889 xfrm_proto_comp_failed:
> 890 xfrm4_protocol_deregister(&xfrmi_ah4_protocol, IPPROTO_AH);
> 891 xfrm_proto_ah_failed:
> 892 xfrm4_protocol_deregister(&xfrmi_esp4_protocol, IPPROTO_ESP);
> 893 xfrm_proto_esp_failed:
> 894 return err;
> 895 }
> 896
> 897 static void xfrmi4_fini(void)
> 898 {
> 899 #if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
> > 900 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET6);
> > 901 xfrm4_tunnel_deregister(&xfrmi_ipip_handler, AF_INET);
> 902 #endif
> 903 xfrm4_protocol_deregister(&xfrmi_ipcomp4_protocol,
IPPROTO_COMP);
> 904 xfrm4_protocol_deregister(&xfrmi_ah4_protocol, IPPROTO_AH);
> 905 xfrm4_protocol_deregister(&xfrmi_esp4_protocol, IPPROTO_ESP);
> 906 }
> 907
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
>
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org