kbuild: move headers_check rule to usr/include/Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 7 Nov 2019 07:14:41 +0000 (16:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:47 +0000 (16:43 +0100)
commitecd77a3261ab58bb07bc00cf3ca57f052764be5b
tree74386cd7103a3b52b23e2409247c255cd4b6bf8a
parentef134d8b493c537b81e8cbd56704efff0b402d8a
kbuild: move headers_check rule to usr/include/Makefile

commit 7ecaf069da52e472d393f03e79d721aabd724166 upstream.

Currently, some sanity checks for uapi headers are done by
scripts/headers_check.pl, which is wired up to the 'headers_check'
target in the top Makefile.

It is true compiling headers has better test coverage, but there
are still several headers excluded from the compile test. I like
to keep headers_check.pl for a while, but we can delete a lot of
code by moving the build rule to usr/include/Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile
lib/Kconfig.debug
scripts/Makefile.headersinst
usr/include/Makefile