Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp95505img; Thu, 21 Mar 2019 15:01:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhW1l91JLAYqnuiJfInodhDzKsBQ/PTxP18XFGhk0KqrifxOyNyQFbAUgJZAc5FB+aODPQ X-Received: by 2002:a65:4806:: with SMTP id h6mr5532553pgs.408.1553205690247; Thu, 21 Mar 2019 15:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553205690; cv=none; d=google.com; s=arc-20160816; b=qF5HjnOK5FKHqgtavfixFn/ZwUweYK+vw+hsdhe1ZhbsU/zmsZv+Brw4jh1WSKYMzO OXUnuxg1dJ7o2Xh0RRX3xp1oD+ass6gRN+nAKA+ZHUt0VCqY1jwuCGvwzYpcOuC1lAmi 7He0ahcRTAJhO0zYRii9HxQ/ok4rbZV47jl9YWGXfbLxA99EIcJCiOe+QqacWQ9oUBe1 72mA/uHpKELyr7aVUbV4jDvHwxm3X5HTwzhr4sDXrqenJsJJbejWzxNLumh8fKYy0RYk soLCWqkAiCByDbj/bJRfiC9aFZ9fcQphkoPqtMZLIMYY99q7ksstfPxD5dXbFNa/glkA S3xA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=DYhMgfvCqnXVKC2v6xVFyop1MyzQzxrVXnO6aU9W7X4=; b=daJFblSITQ6tO8rH/7K/iffdrZAry6si4Odmw5DG1we7jnmLDFIH7rt2ulNKZI/Xny hlZhQyxn427PgFbhmM8rvRA15THVZyYrzeMBIbOrswPlrApR/s/CS6ioLncSygXMWO0P wpMVTRWehvp/+SGyz4xxwRlxPQLw9YCNaprHDT2LOw9JBTx2pbTQIf/7kwLTHt50eZeI FxCpDvcHBT2X+Ap8CuuNYgngix7VIM+IXi6nXVO7dgeosIQWwq6wHG3soejlJ5yNMb0M QlzEmGYJSvNYGnDRy0DNo0aBHgj0ID5pVoOYC1Ha3YFUEYKoDGgp1EVgCuvufL8TYd8R 5Fow== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f124si5186024pfb.38.2019.03.21.15.01.15; Thu, 21 Mar 2019 15:01:30 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727412AbfCUWAe (ORCPT + 99 others); Thu, 21 Mar 2019 18:00:34 -0400 Received: from mga06.intel.com ([134.134.136.31]:53197 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfCUWA1 (ORCPT ); Thu, 21 Mar 2019 18:00:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 15:00:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,254,1549958400"; d="scan'208";a="216357240" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga001.jf.intel.com with ESMTP; 21 Mar 2019 15:00:23 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 40C5330214C; Thu, 21 Mar 2019 15:00:23 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH 08/17] x86/speculation: Fix __initconst in bugs.c Date: Thu, 21 Mar 2019 15:00:00 -0700 Message-Id: <20190321220009.29334-9-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321220009.29334-1-andi@firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen Fix some of the recently added const tables to use __initconst for const data instead of __initdata which causes section attribute conflicts. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/bugs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 2da82eff0eb4..b91b3bfa5cfb 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -275,7 +275,7 @@ static const struct { const char *option; enum spectre_v2_user_cmd cmd; bool secure; -} v2_user_options[] __initdata = { +} v2_user_options[] __initconst = { { "auto", SPECTRE_V2_USER_CMD_AUTO, false }, { "off", SPECTRE_V2_USER_CMD_NONE, false }, { "on", SPECTRE_V2_USER_CMD_FORCE, true }, @@ -419,7 +419,7 @@ static const struct { const char *option; enum spectre_v2_mitigation_cmd cmd; bool secure; -} mitigation_options[] __initdata = { +} mitigation_options[] __initconst = { { "off", SPECTRE_V2_CMD_NONE, false }, { "on", SPECTRE_V2_CMD_FORCE, true }, { "retpoline", SPECTRE_V2_CMD_RETPOLINE, false }, @@ -658,7 +658,7 @@ static const char * const ssb_strings[] = { static const struct { const char *option; enum ssb_mitigation_cmd cmd; -} ssb_mitigation_options[] __initdata = { +} ssb_mitigation_options[] __initconst = { { "auto", SPEC_STORE_BYPASS_CMD_AUTO }, /* Platform decides */ { "on", SPEC_STORE_BYPASS_CMD_ON }, /* Disable Speculative Store Bypass */ { "off", SPEC_STORE_BYPASS_CMD_NONE }, /* Don't touch Speculative Store Bypass */ -- 2.20.1