[PATCH] test: boot: measurement: Fix compilation for non-sandbox builds
Jan Kiszka <[email protected]>
| Newsgroups | gmane.comp.boot-loaders.u-boot.general,gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <[email protected]> |
From: Jan Kiszka <[email protected]> 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]> --- test/boot/measurement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3