]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb76ee00feaa37ed10dc67d8d2bce2b6e921fbf0b
treeefd6483096477b9659ed006d13783e9093938cb3
parent136fddf6342d996ad84d3a964e9243ab92fae368
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 53d625a8ecf6 ("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