Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3883559imu; Mon, 10 Dec 2018 09:17:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/Kd385eIb3gGtvb6iqPh5mDOe6MOqtxxRGzjAoFKhKFdzixwMTzoQ1Hu2DguzbvRbaww9 X-Received: by 2002:a17:902:b01:: with SMTP id 1mr13039302plq.331.1544462252186; Mon, 10 Dec 2018 09:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544462252; cv=none; d=google.com; s=arc-20160816; b=0VNONJsC+b6woNwoE/U7epM0W3ncss0POOgcmLxW9qGUM6pB4eCUC2w0KJZ/lVcF+A PmcYz8C5zc5Yl3DmKkyMoH83yjdy2Wb5A2ykOCYnka91SDWAj1ySb3Z+HkiCbZbpoJGj FykiMg4zCEfinphykH73FcAiPQUDbxHy1l/R3I/KWWr52QibRCWA45OnXoRwoMXXGAuE pRHlz2/eX9DlwMAB5PcO2lWQI1EkksTLXdfuVKAOW4zPgtglIkkm1UYtyDNY2bcCsgWc pxOS1NdohC7sOwRrNT4bULdQdzEF/79ady2aiCZAhaCCK44AFZfG9R9IAmO9w5dTYN0X T/dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ipBVvQxHTqrCsPNKCtPGehSJFtxzvbi9Xwxz5MfwXmU=; b=tjOwth1iuWV5xoS4xTttubKCWRlVkSugfqtep7BXCrMODdC73E0mGUGUiEt4v+zo8i zue/ypetKoEadFfhJgdKVn6hvYeto6y5m4WeI9XI6gu7Z8+fr+XlKmAGmuSca/9rwNiO GqfZG12ZRu6zTK5nDV0Mmlgwu2tBCliNl4RpXQObJEvBAJpFY5aDKIkVjhIWH/dbDEdj JhikDJMGbdxHP5owt0f2tFo0cpiE0L9yluxoQxrUHQLOZTGQGTMSxdNK9fj7KhhtiRd/ g74qQwun1gFaCZwbqc6nnH8UG1YDh7a33NGyyAtXFsuzgAqu2iwPJ/Z8EVtqUwkk6sM3 ixxw== 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 n8si10210212plk.9.2018.12.10.09.17.15; Mon, 10 Dec 2018 09:17:32 -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 S1727283AbeLJQqX (ORCPT + 99 others); Mon, 10 Dec 2018 11:46:23 -0500 Received: from m97188.mail.qiye.163.com ([220.181.97.188]:38331 "EHLO m97188.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbeLJQqW (ORCPT ); Mon, 10 Dec 2018 11:46:22 -0500 X-Greylist: delayed 521 seconds by postgrey-1.27 at vger.kernel.org; Mon, 10 Dec 2018 11:46:20 EST Received: from localhost (unknown [114.241.220.134]) by m97188.mail.qiye.163.com (Hmail) with ESMTPA id 6BF619628EA; Tue, 11 Dec 2018 00:37:31 +0800 (CST) 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: [PATCH] treewide: replace RETPOLINE with CONFIG_RETPOLINE Date: Tue, 11 Dec 2018 00:37:25 +0800 Message-Id: <20181210163725.95977-1-chao.wang@ucloud.cn> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1ktWUFJV1koWUFJQjdXWQgYFAkeWUFLVUtXWQkOFx4IWUFZMjUtOjcyP0 FLVUtZBg++ X-HM-Sender-Digest: e1kSHx4VD1lBWUc6MFE6HRw*IjkBNE8sLVE9FCNOC0wwCS9VSlVKTk9P T05CQ05ITUtJVTMWGhIXVRgTGhRVDBoVHDsOGBcUDh9VGBVFWVdZDB4ZWUEdGhcIHldZCAFZQUhC Tk83V1kSC1lBWUpKT1VJT0pVSUlLVUpIT1kG X-HM-Tid: 0a6798fb16c120bckuqy6bf619628ea Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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