loongson-rng.c:undefined reference to `crypto_register_rng'
From: kernel test robot
Date: Wed May 20 2026 - 05:07:18 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 27fa82620cbaa89a7fc11ac3057701d598813e87
commit: cdadc14359378c0cf02251c86ffbc606f55bfadd crypto: cryptomgr - Select algorithm types only when CRYPTO_SELFTESTS
date: 7 weeks ago
config: loongarch-randconfig-001-20260520 (https://download.01.org/0day-ci/archive/20260520/202605201622.qWOiiZTV-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260520/202605201622.qWOiiZTV-lkp@xxxxxxxxx/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
| Fixes: cdadc1435937 ("crypto: cryptomgr - Select algorithm types only when CRYPTO_SELFTESTS")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605201622.qWOiiZTV-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
loongarch64-linux-ld: drivers/crypto/loongson/loongson-rng.o: in function `.LVL93':
>> loongson-rng.c:(.text+0x408): undefined reference to `crypto_register_rng'
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki