Re: [PATCH] net: l2tp: Fix duplicate included trace.h

From: kernel test robot
Date: Wed Mar 23 2022 - 09:39:39 EST


Hi Haowen,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]
[also build test ERROR on net/master horms-ipvs/master linus/master v5.17 next-20220323]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Haowen-Bai/net-l2tp-Fix-duplicate-included-trace-h/20220323-114023
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 4a0cb83ba6e0cd73a50fa4f84736846bf0029f2b
config: riscv-randconfig-r034-20220323 (https://download.01.org/0day-ci/archive/20220323/202203232123.4w2jlskl-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 902f4708fe1d03b0de7e5315ef875006a6adc319)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/d079f4f8992c56c4d970665bad819349d4916c46
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Haowen-Bai/net-l2tp-Fix-duplicate-included-trace-h/20220323-114023
git checkout d079f4f8992c56c4d970665bad819349d4916c46
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: __tracepoint_delete_session
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(trace_delete_session) in archive net/built-in.a
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(__jump_table+0x44) in archive net/built-in.a
--
>> ld.lld: error: undefined symbol: __traceiter_delete_session
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(trace_delete_session) in archive net/built-in.a
--
>> ld.lld: error: undefined symbol: __tracepoint_delete_tunnel
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(trace_delete_tunnel) in archive net/built-in.a
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(__jump_table+0x38) in archive net/built-in.a
--
>> ld.lld: error: undefined symbol: __traceiter_delete_tunnel
>>> referenced by l2tp_core.c
>>> l2tp/l2tp_core.o:(trace_delete_tunnel) in archive net/built-in.a

--
0-DAY CI Kernel Test Service
https://01.org/lkp