[ammarfaizi2-block:crng/random/master 1/2] aarch64-linux-ld: Unexpected GOT/PLT entries detected!

From: kernel test robot
Date: Sat Jan 15 2022 - 12:34:33 EST


tree: https://github.com/ammarfaizi2/linux-block crng/random/master
head: 55a3130a6888d74fb1b6d26793dbe2c994ff4b7f
commit: 7c82c3237147bd1447bb760009b17c9bee4c91e9 [1/2] lib/crypto: add prompts back to crypto libraries
config: arm64-randconfig-r016-20220115 (https://download.01.org/0day-ci/archive/20220116/202201160152.1zZeXMni-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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
# https://github.com/ammarfaizi2/linux-block/commit/7c82c3237147bd1447bb760009b17c9bee4c91e9
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block crng/random/master
git checkout 7c82c3237147bd1447bb760009b17c9bee4c91e9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 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 >>):

>> aarch64-linux-ld: Unexpected GOT/PLT entries detected!
>> aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: lib/crypto/libchacha.o: in function `crypto_xor_cpy':
>> libchacha.c:(.text+0x8): undefined reference to `__crypto_xor'
aarch64-linux-ld: lib/crypto/chacha20poly1305.o: in function `crypto_xor':
>> chacha20poly1305.c:(.text+0x580): undefined reference to `__crypto_xor'
aarch64-linux-ld: lib/crypto/chacha20poly1305.o: in function `crypto_memneq.constprop.0':
>> chacha20poly1305.c:(.text+0x5b0): undefined reference to `__crypto_memneq'
aarch64-linux-ld: lib/crypto/chacha20poly1305.o: in function `chacha20poly1305_crypt_sg_inplace':
>> chacha20poly1305.c:(.text+0x7e4): undefined reference to `scatterwalk_map_and_copy'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CRYPTO_ALGAPI
Depends on CRYPTO
Selected by
- CRYPTO_LIB_CHACHA_GENERIC
Selected by
- CRYPTO_AEAD && CRYPTO
- CRYPTO_SKCIPHER && CRYPTO
- CRYPTO_HASH && CRYPTO
- CRYPTO_RNG && CRYPTO
- CRYPTO_AKCIPHER && CRYPTO
- CRYPTO_KPP && CRYPTO
- CRYPTO_AES && CRYPTO
- CRYPTO_CAMELLIA && CRYPTO
- CRYPTO_DES && CRYPTO
- CRYPTO_FCRYPT && CRYPTO
- CRYPTO_SERPENT && CRYPTO
- CRYPTO_SM4 && CRYPTO
- CRYPTO_DEFLATE && CRYPTO
- CRYPTO_LZO && CRYPTO
- CRYPTO_842 && CRYPTO
- CRYPTO_LZ4 && CRYPTO
- CRYPTO_LZ4HC && CRYPTO
- CRYPTO_DEV_HISI_SEC && CRYPTO && CRYPTO_HW && (ARM64 || COMPILE_TEST && HAS_IOMEM

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