]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: Add missing stddef.h include to BTI tests
authorMark Brown <broonie@kernel.org>
Fri, 7 May 2021 16:25:42 +0000 (17:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 May 2021 09:19:01 +0000 (10:19 +0100)
commitf7bc8d3e30e0bc12823ae8eb918310c931476ebb
treec0bb0c9d7a7b1933240e1c804a90b13894f91470
parent09c756b32b6cd367593fd5edfc136dd240ca0151
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>
tools/testing/selftests/arm64/bti/test.c