Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEYS: trusted: Fix trusted key backends when building as module
Before this commit the kernel could end up with no trusted key sources even though both of the currently supported backends (TPM and TEE) were compiled as modules. This manifested in the trusted key type not being registered at all. When checking if a CONFIG_… preprocessor variable is defined we only test for the builtin (=y) case and not the module (=m) case. By using the IS_REACHABLE() macro we do test for both cases. Fixes: 5d0682b ("KEYS: trusted: Add generic trusted keys framework") Reviewed-by: Jarkko Sakkinen <[email protected]> Reviewed-by: Ahmad Fatoum <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Andreas Rammhold <[email protected]> Tested-by: Ahmad Fatoum <[email protected]> Signed-off-by: Ahmad Fatoum <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
- Loading branch information