提交 a1bed090 编写于 作者: M Mark Brown 提交者: Catalin Marinas

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: NMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210507162542.23149-1-broonie@kernel.orgSigned-off-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 0c6c2d36
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "system.h" #include "system.h"
#include <stddef.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/auxvec.h> #include <linux/auxvec.h>
#include <linux/signal.h> #include <linux/signal.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册