]> git.ipfire.org Git - thirdparty/linux.git/commit - Makefile
kbuild: rebuild GCC plugins when the compiler is upgraded
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 4 Mar 2021 11:37:08 +0000 (20:37 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 11 Mar 2021 05:40:50 +0000 (14:40 +0900)
commitce6ed1c4c9876c2880f52f18c41ef2a30d070bc5
treeefd6483096477b9659ed006d13783e9093938cb3
parent1f09af062556f0610c08e2f3d680a8b8bc40dd48
kbuild: rebuild GCC plugins when the compiler is upgraded

Linus reported a build error due to the GCC plugin incompatibility
when the compiler is upgraded. [1]

GCC plugins are tied to a particular GCC version. So, they must be
rebuilt when the compiler is upgraded.

This seems to be a long-standing flaw since the initial support of
GCC plugins.

Extend commit 8b59cd81dc5e ("kbuild: ensure full rebuild when the
compiler is updated"), so that GCC plugins are covered by the
compiler upgrade detection.

[1]: https://lore.kernel.org/lkml/CAHk-=wieoN5ttOy7SnsGwZv+Fni3R6m-Ut=oxih6bbZ28G+4dw@mail.gmail.com/

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Makefile
include/linux/compiler-version.h [new file with mode: 0644]
include/linux/kconfig.h
init/Kconfig
scripts/gcc-plugins/Makefile