ld.lld: error: undefined symbol: kb_cs

From: kbuild test robot
Date: Wed May 13 2020 - 20:14:05 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 24085f70a6e1b0cb647ec92623284641d8270637
commit: 5990cdee689c6885b27c6d969a3d58b09002b0bc lib/mpi: Fix building for powerpc with clang
date: 3 weeks ago
config: powerpc-randconfig-r034-20200514 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 310d32cb80a611e6384a921e85607fea05841f26)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 5990cdee689c6885b27c6d969a3d58b09002b0bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc

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

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: kb_cs
>>> referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced by i8042-ppcio.h:28 (drivers/input/serio/i8042-ppcio.h:28)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced 45 more times
--
>> ld.lld: error: undefined symbol: kb_data
>>> referenced by i8042.c:309 (drivers/input/serio/i8042.c:309)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced by i8042-ppcio.h:33 (drivers/input/serio/i8042-ppcio.h:33)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced by i8042.c:319 (drivers/input/serio/i8042.c:319)
>>> input/serio/i8042.o:(__i8042_command) in archive drivers/built-in.a
>>> referenced 15 more times

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip