x86: Move RETPOLINE*_CFLAGS to arch Makefile
authorPeter Zijlstra <peterz@infradead.org>
Fri, 19 Nov 2021 16:50:24 +0000 (17:50 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 8 Dec 2021 10:39:42 +0000 (11:39 +0100)
commitb2f825bfeda884f9d40386cc7d089d023017d2dd
tree3c667ee9593bcafff9262554276c038918af12fb
parent3411506550b1f714a52b5db087666c08658d2698
x86: Move RETPOLINE*_CFLAGS to arch Makefile

Currently, RETPOLINE*_CFLAGS are defined in the top-level Makefile
but only x86 makes use of them. Move them there. If ever another
architecture finds the need, it can be reconsidered.

  [ bp: Massage a bit. ]

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lkml.kernel.org/r/20211119165630.219152765@infradead.org
Makefile
arch/x86/Makefile