[PATCH] optee: fix use of IS_ENABLED() on option without CONFIG_ prefix
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Oct 16 01:52:18 PDT 2024
IS_ENABLED() is meant to be used on options with their CONFIG_ prefix,
fix that and while at it use the recently added more descriptive
CONFIG_ARM32, CONFIG_ARM64 config symbols.
Fixes: 5f2f1f5fc1a9 ("optee: add support to verify 64-bit headers as well")
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/optee.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/optee.c b/common/optee.c
index 31442b1a498d..422bc1c90924 100644
--- a/common/optee.c
+++ b/common/optee.c
@@ -25,13 +25,13 @@ int optee_verify_header(const struct optee_header *hdr)
return -EINVAL;
}
- if (IS_ENABLED(CPU_V7) &&
+ if (IS_ENABLED(CONFIG_ARM32) &&
(hdr->arch != OPTEE_ARCH_ARM32 || hdr->init_load_addr_hi)) {
pr_err("Wrong OP-TEE Arch for ARM v7 CPU\n");
return -EINVAL;
}
- if (IS_ENABLED(CPU_V8) && hdr->arch != OPTEE_ARCH_ARM64) {
+ if (IS_ENABLED(CONFIG_ARM64) && hdr->arch != OPTEE_ARCH_ARM64) {
pr_err("Wrong OP-TEE Arch for ARM v8 CPU\n");
return -EINVAL;
}
--
2.39.5
More information about the barebox
mailing list