certs: make system keyring depend on built-in x509 parser
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Sep 2022 06:52:10 +0000 (15:52 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 23 Sep 2022 19:31:18 +0000 (04:31 +0900)
commit2154aca21408752eaa3eeaf2ba6e942724ff2a4d
tree61e6cce7e24161083061157c37429505b5795c24
parent03764b30a4f0185a97515d616e60e2e00c558583
certs: make system keyring depend on built-in x509 parser

Commit e90886291c7c ("certs: make system keyring depend on x509 parser")
is not the right fix because x509_load_certificate_list() can be modular.

The combination of CONFIG_SYSTEM_TRUSTED_KEYRING=y and
CONFIG_X509_CERTIFICATE_PARSER=m still results in the following error:

    LD      .tmp_vmlinux.kallsyms1
  ld: certs/system_keyring.o: in function `load_system_certificate_list':
  system_keyring.c:(.init.text+0x8c): undefined reference to `x509_load_certificate_list'
  make: *** [Makefile:1169: vmlinux] Error 1

Fixes: e90886291c7c ("certs: make system keyring depend on x509 parser")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Adam Borowski <kilobyte@angband.pl>
certs/Kconfig