From: Mark Brown Date: Fri, 7 May 2021 16:25:42 +0000 (+0100) Subject: kselftest/arm64: Add missing stddef.h include to BTI tests X-Git-Tag: accepted/tizen/unified/20230118.172025~7227^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1bed090fc56e6e24517d96bc076595544fb5317;p=platform%2Fkernel%2Flinux-rpi.git kselftest/arm64: Add missing stddef.h include to BTI tests Explicitly include stddef.h when building the BTI tests so that we have a definition of NULL, with at least some toolchains this is not done implicitly by anything else: test.c: In function ‘start’: test.c:214:25: error: ‘NULL’ undeclared (first use in this function) 214 | sigaction(SIGILL, &sa, NULL); | ^~~~ test.c:20:1: note: ‘NULL’ is defined in header ‘’; did you forget to ‘#include ’? Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20210507162542.23149-1-broonie@kernel.org Signed-off-by: Catalin Marinas --- diff --git a/tools/testing/selftests/arm64/bti/test.c b/tools/testing/selftests/arm64/bti/test.c index 656b049..67b77ab 100644 --- a/tools/testing/selftests/arm64/bti/test.c +++ b/tools/testing/selftests/arm64/bti/test.c @@ -6,6 +6,7 @@ #include "system.h" +#include #include #include #include