diff options
author | Mark Brown <broonie@kernel.org> | 2021-05-07 19:25:42 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2021-05-10 12:19:01 +0300 |
commit | a1bed090fc56e6e24517d96bc076595544fb5317 (patch) | |
tree | c0bb0c9d7a7b1933240e1c804a90b13894f91470 /tools/testing | |
parent | 0c6c2d3615efb7c292573f2e6c886929a2b2da6c (diff) | |
download | linux-a1bed090fc56e6e24517d96bc076595544fb5317.tar.xz |
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 ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210507162542.23149-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/arm64/bti/test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/bti/test.c b/tools/testing/selftests/arm64/bti/test.c index 656b04976ccc..67b77ab83c20 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 <stddef.h> #include <linux/errno.h> #include <linux/auxvec.h> #include <linux/signal.h> |