diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-03-04 20:37:08 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-03-11 14:40:50 +0900 |
commit | ce6ed1c4c9876c2880f52f18c41ef2a30d070bc5 (patch) | |
tree | efd6483096477b9659ed006d13783e9093938cb3 /Makefile | |
parent | 1f09af062556f0610c08e2f3d680a8b8bc40dd48 (diff) | |
download | linux-stable-ce6ed1c4c9876c2880f52f18c41ef2a30d070bc5.tar.gz linux-stable-ce6ed1c4c9876c2880f52f18c41ef2a30d070bc5.tar.bz2 linux-stable-ce6ed1c4c9876c2880f52f18c41ef2a30d070bc5.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -479,6 +479,7 @@ USERINCLUDE := \ -I$(objtree)/arch/$(SRCARCH)/include/generated/uapi \ -I$(srctree)/include/uapi \ -I$(objtree)/include/generated/uapi \ + -include $(srctree)/include/linux/compiler-version.h \ -include $(srctree)/include/linux/kconfig.h # Use LINUXINCLUDE when you must reference the include/ directory. |