Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp828214imu; Fri, 21 Dec 2018 08:02:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ofO9uqNWl73nnyJeOk6wPvHnXUVnP2mVY/yRmoDPFOJX30vgVTFpCxNh80h6XYdcNV7d6 X-Received: by 2002:a63:6cc:: with SMTP id 195mr2938619pgg.401.1545408177074; Fri, 21 Dec 2018 08:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545408177; cv=none; d=google.com; s=arc-20160816; b=GskT217dH+WvZ2oqRcblME6206VGsG5TG3MYfVQX7mka86IwdQ/Bc3Ql4wqL/oEG4Z zpHk8mHk/T9lG6B/KfN8GNMlxMLEV4YXPHn8U8dEtihZH0wDMCyI6Gj0+7PyY7Q9jsmd NA0sNfDtptMccB0p9BfhdZz1fxb4blvbm7romYj+2JimoqhSYcLpeA+r/XUvi+nv9C/l Ld3DShHoA9F59AotZJbQS4Uad01MziCwRiJygLT+1xF2qr6bsqVVyn2wbSrU+GWHZymx EcZc4X9ndQaKm9g/15sktnFvh+kk+CYDJIwoZt3/9rlycMuQ/kWx+MjsqlUYmmP9Kzxf L5qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QueapNYrvblKpPREMSVrfe2JrYKbo0A4aKO+WZR9bPM=; b=ehbliWwdlS6YWiXc+QeQ3n8hc6SAbQ9wL8zSof/qIWumqiB+bRA+XNyvWrXzx4dtHV i4UXcJziCjrpHCIVAL8Qhe2qYdWTzB3lYsesCP+qce19Y6XiTq8BcN+3XalcrZ5yS5b0 jABR49JXpxLHiRQUJ6wfshaGZuttUAcLqCARDaStrw9NTbVYci0ssORnyWjhGsTrFQzV 0CyBu5iJeniOxv2nIXqqk/HzODxdZG9h6xauHfpSfSNxu+q97YcE8dv2X+HonSP65JrF qc2MDchUAqiQpqrQ+EcF+8uApLDsLWlmWt5Iby941qL6oCwwYin4LPmgkvRSnABgaDWc N6Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ucloud.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si21687777pgn.325.2018.12.21.08.02.40; Fri, 21 Dec 2018 08:02:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ucloud.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388018AbeLUJo6 (ORCPT + 99 others); Fri, 21 Dec 2018 04:44:58 -0500 Received: from m97179.mail.qiye.163.com ([220.181.97.179]:20912 "EHLO m97179.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733247AbeLUJo5 (ORCPT ); Fri, 21 Dec 2018 04:44:57 -0500 X-Greylist: delayed 665 seconds by postgrey-1.27 at vger.kernel.org; Fri, 21 Dec 2018 04:44:55 EST Received: from localhost (unknown [124.65.100.10]) by m97179.mail.qiye.163.com (Hmail) with ESMTPA id 1CD34E01448; Fri, 21 Dec 2018 17:33:48 +0800 (CST) Date: Fri, 21 Dec 2018 17:33:47 +0800 From: WANG Chao To: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Peter Zijlstra , Zhenzhong Duan , Thomas Gleixner , David Woodhouse , Borislav Petkov , Daniel Borkmann , "H . Peter Anvin" , Konrad Rzeszutek Wilk , Andy Lutomirski , Masahiro Yamada , Michal Marek , srinivas.eeda@oracle.com Subject: Re: [PATCH] treewide: replace RETPOLINE with CONFIG_RETPOLINE Message-ID: <20181221093347.GA88654@WANG-Chaos-MacBook-Pro.local> References: <20181210163725.95977-1-chao.wang@ucloud.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181210163725.95977-1-chao.wang@ucloud.cn> User-Agent: Mutt/1.11.1 (2018-12-01) X-HM-Spam-Status: e1kIGBQJHllBS1VLV1koWUFJQjdXWS1ZQUlXWQkOFx4IWUFZMjUtOjcyP0 FLVUtZBg++ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ngw6Iyo*STlOGT4NDgEsLwoY HEMKFAlVSlVKTk9OSENPQ0lDSUJJVTMWGhIXVRgTGhRVDBoVHDsOGBcUDh9VGBVFWVdZEgtZQVlK SU9VTU5VSktLVUpLWVdZCAFZQU9PTks3Bg++ X-HM-Tid: 0a67d01d1d0420bdkuqy1cd34e01448 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/18 at 12:37P, WANG Chao wrote: > Since commit 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend > on compiler support"), RETPOLINE has been replaced by CONFIG_RETPOLINE. > > Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support") > Signed-off-by: WANG Chao ping ... > --- > arch/x86/kernel/cpu/bugs.c | 2 +- > include/linux/compiler-gcc.h | 2 +- > include/linux/module.h | 2 +- > scripts/mod/modpost.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c > index 500278f5308e..e8abe3f6c10e 100644 > --- a/arch/x86/kernel/cpu/bugs.c > +++ b/arch/x86/kernel/cpu/bugs.c > @@ -213,7 +213,7 @@ static enum spectre_v2_mitigation spectre_v2_enabled __ro_after_init = > static enum spectre_v2_user_mitigation spectre_v2_user __ro_after_init = > SPECTRE_V2_USER_NONE; > > -#ifdef RETPOLINE > +#ifdef CONFIG_RETPOLINE > static bool spectre_v2_bad_module; > > bool retpoline_module_ok(bool has_retpoline) > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index 2010493e1040..977ddf2774f9 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -68,7 +68,7 @@ > */ > #define uninitialized_var(x) x = x > > -#ifdef RETPOLINE > +#ifdef CONFIG_RETPOLINE > #define __noretpoline __attribute__((__indirect_branch__("keep"))) > #endif > > diff --git a/include/linux/module.h b/include/linux/module.h > index fce6b4335e36..0c575f51fe57 100644 > --- a/include/linux/module.h > +++ b/include/linux/module.h > @@ -817,7 +817,7 @@ static inline void module_bug_finalize(const Elf_Ehdr *hdr, > static inline void module_bug_cleanup(struct module *mod) {} > #endif /* CONFIG_GENERIC_BUG */ > > -#ifdef RETPOLINE > +#ifdef CONFIG_RETPOLINE > extern bool retpoline_module_ok(bool has_retpoline); > #else > static inline bool retpoline_module_ok(bool has_retpoline) > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 0d998c54564d..5a5b3780456f 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -2157,7 +2157,7 @@ static void add_intree_flag(struct buffer *b, int is_intree) > /* Cannot check for assembler */ > static void add_retpoline(struct buffer *b) > { > - buf_printf(b, "\n#ifdef RETPOLINE\n"); > + buf_printf(b, "\n#ifdef CONFIG_RETPOLINE\n"); > buf_printf(b, "MODULE_INFO(retpoline, \"Y\");\n"); > buf_printf(b, "#endif\n"); > } > -- > 2.19.2 > >