Skip to content

Commit 00d76a0

Browse files
committed
kbuild: fix comment about missing include guard detection
The keyword here is 'twice' to explain the trick. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent a0d1c95 commit 00d76a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/include/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ no-header-test += asm-generic/%
9393

9494
extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
9595

96-
# Include the header to detect missing include guard.
96+
# Include the header twice to detect missing include guard.
9797
quiet_cmd_hdrtest = HDRTEST $<
9898
cmd_hdrtest = \
9999
$(CC) $(c_flags) -S -o /dev/null -x c /dev/null \

0 commit comments

Comments
 (0)