Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-30 Thread Zhenzhong Duan
On 2018/10/30 18:09, Peter Zijlstra wrote: On Tue, Oct 30, 2018 at 06:39:24PM +0900, Masahiro Yamada wrote: Hi, On Tue, Oct 30, 2018 at 3:57 PM Zhenzhong Duan wrote: Since retpoline capable compilers are widely available, make CONFIG_RETPOLINE hard depend on it. Change KBUILD to use CONFI

Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-30 Thread Zhenzhong Duan
On 2018/10/30 16:32, Peter Zijlstra wrote: On Mon, Oct 29, 2018 at 11:55:04PM -0700, Zhenzhong Duan wrote: Since retpoline capable compilers are widely available, make CONFIG_RETPOLINE hard depend on it. Change KBUILD to use CONFIG_RETPOLINE_SUPPORT to avoid conflict with CONFIG_RETPOLINE which

Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-30 Thread Peter Zijlstra
On Mon, Oct 29, 2018 at 11:55:04PM -0700, Zhenzhong Duan wrote: > Since retpoline capable compilers are widely available, make > CONFIG_RETPOLINE hard depend on it. > > Change KBUILD to use CONFIG_RETPOLINE_SUPPORT to avoid conflict with > CONFIG_RETPOLINE which is used by kernel. > > With all th

Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-30 Thread Peter Zijlstra
On Tue, Oct 30, 2018 at 06:39:24PM +0900, Masahiro Yamada wrote: > Hi, > > > > On Tue, Oct 30, 2018 at 3:57 PM Zhenzhong Duan > wrote: > > > > Since retpoline capable compilers are widely available, make > > CONFIG_RETPOLINE hard depend on it. > > > > Change KBUILD to use CONFIG_RETPOLINE_SUPPO

Re: [PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-30 Thread Masahiro Yamada
Hi, On Tue, Oct 30, 2018 at 3:57 PM Zhenzhong Duan wrote: > > Since retpoline capable compilers are widely available, make > CONFIG_RETPOLINE hard depend on it. > > Change KBUILD to use CONFIG_RETPOLINE_SUPPORT to avoid conflict with > CONFIG_RETPOLINE which is used by kernel. > > With all that

[PATCH 1/3] retpolines: Only enable retpoline when compiler support it

2018-10-29 Thread Zhenzhong Duan
Since retpoline capable compilers are widely available, make CONFIG_RETPOLINE hard depend on it. Change KBUILD to use CONFIG_RETPOLINE_SUPPORT to avoid conflict with CONFIG_RETPOLINE which is used by kernel. With all that stuff, the check of RETPOLINE is changed to CONFIG_RETPOLINE. This change