Received: by 10.223.176.5 with SMTP id f5csp2842854wra; Mon, 5 Feb 2018 10:47:48 -0800 (PST) X-Google-Smtp-Source: AH8x2278Fw44nCFYd0jSR7XGiIbQZvGu7Wmt5L4pPICCTpCW4llOVm5x2m/K/oQFEhwLvNiAI3xo X-Received: by 10.98.92.1 with SMTP id q1mr8462812pfb.238.1517856468015; Mon, 05 Feb 2018 10:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517856467; cv=none; d=google.com; s=arc-20160816; b=0hAbtkE8HvQKIbFL4E4phRWhkstPCQ6nuW0eA2vUOj65LcpAGoHnwExZ94uCrhdu7V 14xjNReK21D0/EAGrxsC+IkkPKOr9e20Bj0IFctUBrnwbKsNdeQ3MzqDnHyi2KURVQTY i6CStLAW5ITFxN1bg2qrAHVgz+r1FEnUJGapoBKXyfpeLqbO0x16mW6P1A20QcgkR3DT R1fjywUbtq6lQtJItfvDYzRK2GruRL5oT+w3bRgAgZG1Xcp1j+tUaM3r+k3SGpl2lxPv Byg6pmB6T0/UDmBvRTHGMl6SbFh/gqR/ThuBHays5NyuUW65OBTf6yuRswYnq6WKGvvt MwGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fE8MEG9prrX9oGz2J3iue0ZwGYviTbEbw3Bx47lvOvE=; b=0b7fpUl09ReBK5c1E6BZV29+HytIHmfgEcuXUHFVIgf+M/JhCNkE90OSUtaSAACZT1 87AlpBUTxNS1LbvG5VqklyhK//FrD/nSQoOXi0tbweazE8ojESZ2O3g5FiJCWFot0ywC UaIbJfysdHOKgMj2HYPoELZSEWG/YYe1789Qebu8ctaqVf69bljkSSLcnvKY4XTafAtQ ujhGWPwEcpSeVHY+Nxi0OTRzdNNNzA9q1m3cfD5Y2Ks8YZ0jWILS72gsX3gwLIspJBAt xL3KkiUYrZ6BCvb6FEJk9YZ1LEKNL3BGLAarFTqORqVOnYUW5Qh7TsR1Xl2wrUZnSPe1 ZUMg== 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 w22si201578pfk.197.2018.02.05.10.47.33; Mon, 05 Feb 2018 10:47:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753881AbeBESrM (ORCPT + 99 others); Mon, 5 Feb 2018 13:47:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52852 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753849AbeBES0C (ORCPT ); Mon, 5 Feb 2018 13:26:02 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 987D61159; Mon, 5 Feb 2018 18:25:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Thomas Gleixner , Ricardo Neri , Andy Lutomirski , Borislav Petkov , Thomas Garnier , David Woodhouse Subject: [PATCH 4.15 52/60] x86/pti: Mark constant arrays as __initconst Date: Mon, 5 Feb 2018 10:23:25 -0800 Message-Id: <20180205182216.503443700@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182213.902626065@linuxfoundation.org> References: <20180205182213.902626065@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann arnd@arndb.de commit 4bf5d56d429cbc96c23d809a08f63cd29e1a702e I'm seeing build failures from the two newly introduced arrays that are marked 'const' and '__initdata', which are mutually exclusive: arch/x86/kernel/cpu/common.c:882:43: error: 'cpu_no_speculation' causes a section type conflict with 'e820_table_firmware_init' arch/x86/kernel/cpu/common.c:895:43: error: 'cpu_no_meltdown' causes a section type conflict with 'e820_table_firmware_init' The correct annotation is __initconst. Fixes: fec9434a12f3 ("x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown") Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Cc: Ricardo Neri Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Thomas Garnier Cc: David Woodhouse Link: https://lkml.kernel.org/r/20180202213959.611210-1-arnd@arndb.de Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -900,7 +900,7 @@ static void identify_cpu_without_cpuid(s #endif } -static const __initdata struct x86_cpu_id cpu_no_speculation[] = { +static const __initconst struct x86_cpu_id cpu_no_speculation[] = { { X86_VENDOR_INTEL, 6, INTEL_FAM6_ATOM_CEDARVIEW, X86_FEATURE_ANY }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_ATOM_CLOVERVIEW, X86_FEATURE_ANY }, { X86_VENDOR_INTEL, 6, INTEL_FAM6_ATOM_LINCROFT, X86_FEATURE_ANY }, @@ -913,7 +913,7 @@ static const __initdata struct x86_cpu_i {} }; -static const __initdata struct x86_cpu_id cpu_no_meltdown[] = { +static const __initconst struct x86_cpu_id cpu_no_meltdown[] = { { X86_VENDOR_AMD }, {} };