From: Nick Desaulniers Date: Wed, 30 Mar 2022 18:34:06 +0000 (-0700) Subject: kbuild: uapi: use -fsyntax-only rather than -S X-Git-Tag: v6.1-rc5~1254^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a22717b9b074d75baf7dd6041487730e53b4dbb;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Masahiro Yamada --- diff --git a/usr/include/Makefile b/usr/include/Makefile index fa9819e0..f621e60 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 $@