Re: [PATCH bpf-next 1/4] bpf: Add SHA hash kfuncs for cryptographic hashing

kernel test robot
2025-11-18T15:54:47Z

Hi Daniel,

kernel test robot noticed the following build errors:

[auto build test ERROR on bpf-next/master]

url: https://github.com/intel-lab-lkp/linux/commits/Daniel-Hodges/bpf-Add-SHA-hash-kfuncs-for-cryptographic-hashing/20251118-051958
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20251117211413.1394-2-git%40danielhodges.dev
patch subject: [PATCH bpf-next 1/4] bpf: Add SHA hash kfuncs for cryptographic hashing
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20251118/202511182314.4OwvmPz8-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511182314.4OwvmPz8-lkp@intel.com/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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511182314.4OwvmPz8-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: sha384
>>> referenced by crypto.c
>>> kernel/bpf/crypto.o:(bpf_sha384_hash) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: sha512
>>> referenced by crypto.c
>>> kernel/bpf/crypto.o:(bpf_sha512_hash) in archive vmlinux.a

--
0-DAY CI Kernel Test Service