commit | 551197864ad5d8ed01137b7008448bd18b9731d5 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <masahiroy@kernel.org> | Thu Dec 19 00:34:21 2019 +0900 |
committer | Masahiro Yamada <masahiroy@kernel.org> | Tue Jan 07 02:18:38 2020 +0900 |
tree | e54d330ff582e53aa9e2900ab580db2261dd77ec | |
parent | c79f46a282390e0f5b306007bf7b11a46d529538 [diff] |
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: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>