[PATCH v2 11/18] optee: optee_verify_header: constify optee_header
Marco Felsch
m.felsch at pengutronix.de
Tue Jan 16 09:07:31 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 0cdf828a6d3a..f52775dab5b4 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);
#ifdef CONFIG_HAVE_OPTEE
--
2.39.2
More information about the barebox
mailing list