summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <[email protected]>2026-08-20 17:57:08 +0200
committerTom Rini <[email protected]>2026-08-28 12:24:05 -0600
commitf92bd784f6ce15aac66e89ab4c17349af18d4ddd (patch)
tree2004d45658beeef6d75c81574bdef24ef0dccb89
parent65305d0e450580e611eb13bc5079e34dcbd35964 (diff)
test: boot: measurement: Fix compilation for non-sandbox builds
asm/io.h provides map_to_sysmem() only for the sandbox. Other targets fail the build with ../test/boot/measurement.c: In function ‘measure’: ../test/boot/measurement.c:30:33: error: implicit declaration of function ‘map_to_sysmem’; did you mean ‘map_physmem’? [-Wimplicit-function-declaration] 30 | images.os.image_start = map_to_sysmem(kernel); | ^~~~~~~~~~~~~ | map_physmem Use the proper header that will pull asm/io.h only where needed. Signed-off-by: Jan Kiszka <[email protected]>
-rw-r--r--test/boot/measurement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/boot/measurement.c b/test/boot/measurement.c
index 71f503f1567..85a01f1fec8 100644
--- a/test/boot/measurement.c
+++ b/test/boot/measurement.c
@@ -9,9 +9,9 @@
#include <bootm.h>
#include <env.h>
#include <malloc.h>
+#include <mapmem.h>
#include <test/test.h>
#include <test/ut.h>
-#include <asm/io.h>
#define MEASUREMENT_TEST(_name, _flags) \
UNIT_TEST(_name, _flags, measurement)