Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2462793imm; Thu, 7 Jun 2018 11:00:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLEPl93fcp9v7Ti2KvAORIS3ttbxr+wxAcUP3X9v+9HY7Pl/oeePlcViTrR5x8VOFFfJ6hG X-Received: by 2002:a62:8b9b:: with SMTP id e27-v6mr2734856pfl.82.1528394455630; Thu, 07 Jun 2018 11:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528394455; cv=none; d=google.com; s=arc-20160816; b=UY6YsWwtR7ZXNH5yr6C4u81updNcHvue5Yt5skR/9RCT8Bb9YUqCRW1YkuZ+qkuHSL xamgqq0Wp7Vmcr1lpkk0n0m6kDmjcYailHllARJg1eFuMvi+eDGeQ/3QacWGMooqKZQW TVTdEG5tXvljs/oMPWLqf05AuQqxcmJRCxRejnD9uLl0/GRb3XuZ6yIj6HPajM0Eczyo wZubsh7/7lGJ4EFZP0jfOuVdeD9fRFLD3bAp8/UBSzRAuWSDVcIp7JfFuzynUcewqivM UYhZCYsLjGPyN+OPVjoWc7ZNkzMjkL9RfdrMG9hdD4huDaN68OnbQ6t1ROkynf8TfK5B urzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=9SYloFkVpENQmKLa/dfckcsbKBBJdlpUJrKeLWuSoIo=; b=Qy+ejF8vLY6xIX8A/bmM9GGz3ZAYY6HmeJ6aj/6Y8Sfme0TyIqOHj2OsAvQQ4xQqye OU8fp40Par6fWSdQrPELzoML1Uz13mFpEVNKyI0Y4Zp6ztdMiRZyqg6gJWwq3GJ67+NC P2rRstoV3rEBz2svvNe64IhntqbOWm29kyyFjDGflclI+Z2zJ6CiuR3tOmlpvJCF5i1l 3L155JVG4PJuw/nTEm7KNJr/KkmopT+rXtCIYnaCXLS7KI4UZdFBxCzOUwBb7sLV+CZI MeuMHvSCeM3Mitd9rRaMrN3DWapsEFqoKU+OIjJ0vUvbqYFXUJRXDqv/LEvvrRdAhjU+ ZgYw== 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 u6-v6si42202078pgv.420.2018.06.07.11.00.41; Thu, 07 Jun 2018 11:00:55 -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 S964804AbeFGOzc (ORCPT + 99 others); Thu, 7 Jun 2018 10:55:32 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41057 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934394AbeFGOz3 (ORCPT ); Thu, 7 Jun 2018 10:55:29 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvby-0005hK-3d; Thu, 07 Jun 2018 15:09:58 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvay-0002jj-Qy; Thu, 07 Jun 2018 15:08:56 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Andy Lutomirski" , "Arnd Bergmann" , "Thomas Garnier" , "Thomas Gleixner" , "Greg Kroah-Hartman" , "Ricardo Neri" , "Borislav Petkov" , "David Woodhouse" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 045/410] x86/pti: Mark constant arrays as __initconst In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 4bf5d56d429cbc96c23d809a08f63cd29e1a702e upstream. 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 Signed-off-by: Ben Hutchings --- 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 @@ -763,7 +763,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 }, @@ -776,7 +776,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 }, {} };