summaryrefslogtreecommitdiff
path: root/usr/include
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2022-03-30 21:34:06 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2022-04-05 11:03:31 +0300
commit9a22717b9b074d75baf7dd6041487730e53b4dbb (patch)
tree86041694df694f09fdf657c337d5c8df7c7740a2 /usr/include
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
downloadlinux-9a22717b9b074d75baf7dd6041487730e53b4dbb.tar.xz
kbuild: uapi: use -fsyntax-only rather than -S
The UAPI header tests are checking that the generated headers do not have syntax errors. There's no need to run the rest of the compilation pipeline after semantic analysis has run. Replace -S -o /dev/null with -fsyntax-only. Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'usr/include')
-rw-r--r--usr/include/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile
index fa9819e022b7..f621e6078512 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -92,7 +92,7 @@ always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/
# Include the header twice to detect missing include guard.
quiet_cmd_hdrtest = HDRTEST $<
cmd_hdrtest = \
- $(CC) $(c_flags) -S -o /dev/null -x c /dev/null \
+ $(CC) $(c_flags) -fsyntax-only -x c /dev/null \
$(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
$(PERL) $(srctree)/$(src)/headers_check.pl $(obj) $(SRCARCH) $<; \
touch $@