linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Enable retpoline support only when compiler support
@ 2018-11-02  8:45 Zhenzhong Duan
  0 siblings, 0 replies; only message in thread
From: Zhenzhong Duan @ 2018-11-02  8:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, tglx, dwmw, srinivas.eeda, yamada.masahiro, peterz

According to PeterZ's suggestion in https://lkml.org/lkml/2018/9/18/1016,
hard bind retpoline with compiler support and remove minimal stuff.

Tested with both CONFIG_RETPOLINE enabled and disabled.

-v3:
Add Suggested-by[Ingo]
Break build if compiler doesn't support retpoline[Dwmw,Tglx,Ingo]

-v2:
Add compiler support check in Kconfig [Masahiro]
Drop 3rd patch as __insn_is_indirect_jump() may be used in some corner case.[PeterZ]

Zhenzhong Duan (2):
  retpolines: Only enable retpoline when compiler support it
  retpolines: Remove the minimal stuff of retpoline support

 arch/x86/Kconfig                     |  4 ----
 arch/x86/Makefile                    |  5 +++--
 arch/x86/include/asm/nospec-branch.h | 12 ++++++------
 arch/x86/kernel/cpu/bugs.c           | 13 ++-----------
 scripts/Makefile.build               |  2 --
 5 files changed, 11 insertions(+), 25 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-02  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02  8:45 [PATCH v3 0/2] Enable retpoline support only when compiler support Zhenzhong Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).