Received: by 10.223.176.5 with SMTP id f5csp2825778wra; Mon, 5 Feb 2018 10:29:13 -0800 (PST) X-Google-Smtp-Source: AH8x226PgVMremImVYLrene42utUdDvGTo9A9NTkb80d2e6clTLQ9Sy8euLKDkktPnKkEiod6dlb X-Received: by 2002:a17:902:20cb:: with SMTP id v11-v6mr44676477plg.63.1517855353181; Mon, 05 Feb 2018 10:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517855353; cv=none; d=google.com; s=arc-20160816; b=RauKlGJ6nqeUD0cdIocm5iY66f9wRSgl8bjLT6oU+Zu4Y8n96xz5+w+q3nDasfC5B3 cSVZghHc7i9Zuuk/bGV1wGQ9schggCiKpGCFH1aqxJGr0zC49UlJCSGqH809G5grEwfg 1NU8JVZFpsqtefee8/eoimJvSL9If01eXSRru0qgVo5WsgPhAzVkmKK4lkUqi+6DSwSk /t7McpBiznFlVFR5cksI68Xu3oER1KrHVi1wfft2jrKJmAitF10jomSQaHk/PHyiO1QK pgyJsqaQEzF+r5NOJ9S+TPJ6ID9O0zs/tJtVRKcJDgFQd7CHlOawUdmCr4wz3WDUg4NK lPQA== 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=D/ELyWIovI063k5tvR62ZJAnp8lF0NSHhqKe7ZjUEgc=; b=hoxQtwDEMf6fRp2SL8LNsRErW8QArTx/N6JLHkSndKBUZiz1YJj8op8QZS5PBw6VY7 HwzInrimwXTA0PqhGbQnVCbyV3IKGCCO6o2xT8AniDKPhiPwQXKccWtVEDK430xawM/D ARNj6Zrv9RBJ9mXB6zqyhPkAPh1meP+BRw2pjLJgIOho+gdFpAQ/QTDxCa7CbbBY7ZCn gU9dsH7GMKh8aafSzzefmrQ/8YNPY4H9x0d5RUonaXfLra9gD1RrFk8Nwn5qPQM6VX6k xhPU6ooMHMMxEZrkYQC9gYXImzaiL3JanE04mj5UOUKn1pIFhjx9xVvKEhjdvbu1V6qp G/mQ== 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 t4-v6si7137937plb.415.2018.02.05.10.28.58; Mon, 05 Feb 2018 10:29:13 -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 S1753705AbeBES1s (ORCPT + 99 others); Mon, 5 Feb 2018 13:27:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51692 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753559AbeBESYb (ORCPT ); Mon, 5 Feb 2018 13:24:31 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EE33410B4; Mon, 5 Feb 2018 18:24:27 +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.14 56/64] x86/pti: Mark constant arrays as __initconst Date: Mon, 5 Feb 2018 10:23:15 -0800 Message-Id: <20180205182140.878040008@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182138.571333346@linuxfoundation.org> References: <20180205182138.571333346@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.14-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 @@ -876,7 +876,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 }, @@ -889,7 +889,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 }, {} };