kbuild: remove header compile test
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 7 Nov 2019 07:14:40 +0000 (16:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:43:47 +0000 (16:43 +0100)
commitef134d8b493c537b81e8cbd56704efff0b402d8a
tree3f51dfe456b70d00b84914eee4904d9e10197ba1
parent20e559d8f74538269a0f47df814656c150fca858
kbuild: remove header compile test

commit fcbb8461fd2376ba3782b5b8bd440c929b8e4980 upstream.

There are both positive and negative options about this feature.
At first, I thought it was a good idea, but actually Linus stated a
negative opinion (https://lkml.org/lkml/2019/9/29/227). I admit it
is ugly and annoying.

The baseline I'd like to keep is the compile-test of uapi headers.
(Otherwise, kernel developers have no way to ensure the correctness
of the exported headers.)

I will maintain a small build rule in usr/include/Makefile.
Remove the other header test functionality.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[ added to 5.4.y due to start of build warnings from backported patches
  because of this feature - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/kbuild/makefiles.rst
Makefile
drivers/gpu/drm/i915/Kconfig.debug
include/Kbuild [deleted file]
init/Kconfig
scripts/Makefile.build
scripts/Makefile.lib
usr/include/Makefile