]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: detect missing include guard for exported headers
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 18 Dec 2019 15:34:21 +0000 (00:34 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 6 Jan 2020 17:18:38 +0000 (02:18 +0900)
commit79cfaf41984d3c0a1223354b19e7868a7cbfdd84
treee54d330ff582e53aa9e2900ab580db2261dd77ec
parentcdc2320cbb59dea44aae73acf1819cf7501d06d3
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>
usr/include/Makefile