[PATCH 11/18] optee: optee_verify_header: constify optee_header
Marco Felsch
m.felsch at pengutronix.de
Thu Jan 11 03:48:34 PST 2024
Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
common/optee.c | 2 +-
include/tee/optee.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/optee.c b/common/optee.c
index 2ae28b172bbb..34667f1f51e0 100644
--- a/common/optee.c
+++ b/common/optee.c
@@ -8,7 +8,7 @@
static u64 optee_membase = U64_MAX;
-int optee_verify_header(struct optee_header *hdr)
+int optee_verify_header(const struct optee_header *hdr)
{
if (!hdr)
return -EINVAL;
diff --git a/include/tee/optee.h b/include/tee/optee.h
index 7bd6638f8559..393a6978f258 100644
--- a/include/tee/optee.h
+++ b/include/tee/optee.h
@@ -31,7 +31,7 @@ struct optee_header {
uint32_t paged_size;
};
-int optee_verify_header (struct optee_header *hdr);
+int optee_verify_header (const struct optee_header *hdr);
void optee_set_membase(const struct optee_header *hdr);
int optee_get_membase(u64 *membase);
--
2.39.2
More information about the barebox
mailing list