Received: by 10.223.176.5 with SMTP id f5csp711016wra; Fri, 9 Feb 2018 06:04:33 -0800 (PST) X-Google-Smtp-Source: AH8x227+MmUmlqCx/bq5sWSiBn2Gghcx5Sd/TZcKp+CdefPexPGaUiEZRhDeAzuVsi5mQEm14GI6 X-Received: by 10.99.112.81 with SMTP id a17mr2380130pgn.151.1518185072909; Fri, 09 Feb 2018 06:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518185072; cv=none; d=google.com; s=arc-20160816; b=MVo5zzPNzU5JI8/jJoaTATQBgOxamSA5nD0NbLGRUkxM9PhFK8Mur/+u2nwS6zWEnP o2tycMmAJBjwC7jq5PJKxk+1PXQzAPAcaajbTb3J++IEJycMj40zOVVwGyBMuwgzhUm1 2+7GVFJ2uGTUwTEEscowbZWy1HiXWWxGkqX1d1L7ELmUWrFYgAnstCXfQSrJB/xF8e2O 1R5LLrWbt172Bvx65Q94a0zpREeUS1XXAnQI45Dib74QGEd3Qsd4wjrectwOn4xbpY1F cuoNtZMn3jgCx6WlJqLEGEeFpJpe2Hk53QYHBnQNCMJwA5Y7pwMHb/6/3wP1gGPediYk 8/fA== 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=iLvjzKMtSX3l9m34dmBJTlq6Vpi4MjGj+QyxqHeMKv0=; b=lfT1P8Aurs9enrAJD95o//nHCpVjz5eblY/at4jUU//cu11fKzy8R55nDP9BJeYe+X TohvSWDxEmVB4GLKwPbhZheljrPCOCIcHN7gPL9UBUNd8t2hmIJhDauaJDWzv/Xy/F3w fz6S2JdM8FC+t0U8V+T5JE1r+e+v82J1SvjN5CtLQ9of7gcPVZkvFUxdpI3gx8oGXx/r P5mwvK4Xi5/SxhZk4ZJnAZsn0MkGftbEysNFVe25w9H6IHdwSmJgoR3wdhAUrhFpGHyr ZpRju1a7mj7ryNDB+3DixqUQpMb1pd5LDSHHpTe5ZwaauH6qJOjNuVPPukxaJsONxOAM wcnA== 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 r7si1732304pfh.174.2018.02.09.06.04.18; Fri, 09 Feb 2018 06:04: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753329AbeBINno (ORCPT + 99 others); Fri, 9 Feb 2018 08:43:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51038 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbeBINnm (ORCPT ); Fri, 9 Feb 2018 08:43:42 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 74FE91023; Fri, 9 Feb 2018 13:43:41 +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.9 74/92] x86/pti: Mark constant arrays as __initconst Date: Fri, 9 Feb 2018 14:39:43 +0100 Message-Id: <20180209133936.577598802@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133931.211869118@linuxfoundation.org> References: <20180209133931.211869118@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann (cherry picked from 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: David Woodhouse 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 @@ -861,7 +861,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 }, @@ -874,7 +874,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 }, {} };