OSDN Git Service

kbuild: fix comment about missing include guard detection
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Apr 2020 18:29:19 +0000 (03:29 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 11 Apr 2020 03:09:48 +0000 (12:09 +0900)
The keyword here is 'twice' to explain the trick.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
usr/include/Makefile

index a339ef3..b568a95 100644 (file)
@@ -93,7 +93,7 @@ no-header-test += asm-generic/%
 
 extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
 
-# Include the header to detect missing include guard.
+# 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 \