Skip to content
Commit 55119786 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: detect missing include guard for exported headers



Adding an include guard to every header file is good practice in case
it is included multiple times.

Exported headers are compile-tested for the comprehensive sanity checks.
Let's include the same header twice. If an include guard is missing,
the header will fail to build due to redefinition of something.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent c79f46a2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment