Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8130195imu; Tue, 4 Dec 2018 03:31:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VMrambDHu2OWEceSCFOhGXCZEEVx9cxrwb6VHlIb7iC/M2iJ+COWzjfLXT0fP6EpPuCrEu X-Received: by 2002:a63:fa46:: with SMTP id g6mr16489911pgk.18.1543923114837; Tue, 04 Dec 2018 03:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543923114; cv=none; d=google.com; s=arc-20160816; b=e5YYeazb0pO9akhQFcPdzJfRMAnziuOT6UHZmWhYYuEWLKMZtbMBz8/D2gcDod0ZD9 EfM8YJEci8OYFYDXhzZZN+IaAhThlWND6LYJkgcvm/KGSuab/jfaU1Q7cpx/aZwPj2aE SdMKJg0c45w2P8PxkOjL/oTTZuIcfj9lpJDeRfZQmLwu3c/o+wjAUb1vskgkl2PMq7v3 1Nx19mQnjGG/tSjwiR9GvZ4X/vHd5ESiDn3TKPQFNH2PwwAPjfAtvWLxGPDQ0TtXCCRr WuTuNkRWoeaZw9peMgwYsRotRRh8BbpY2SpWITd/NVllsU8IbRzoS4bOXXIDkH4zeeRP W7Xg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fmlDG7j88PQyUk0qoICsXHcuYM45jJCnwLjLZWkso2Y=; b=DCbp4X/nyHxNO4nzIoQoUX13WuxihFToRXZUxv9FagmpIehTkLs1124LFmwRyuPrOg 4bbzvdBf9oBQwatcFZ9BjYCBVGXPX4ozsQXxgWaPqL80eZUJOelIKsWCXvf5Ux1N2lE6 3k0HwKSKd/iKGGmq1UqHar+A9UhDLnLmSBzJt9ERKvaWVwHJBpw7Ta5yMblACg2TG5SD jIMhauYawPVbmiC17BOJ0Oyjc+i/bBMQknzOfpWjGzu43AlQIWmjX9H3E/6gackf/8SZ CyPFRncVZ4ljRVPHdCGvJdAhMuGnr3cULjvlxYKRUx/6sTGJrMh/6MF6UytWqfS6Qaib 2iIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dAU50fyt; 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 g34si17331825pld.15.2018.12.04.03.31.39; Tue, 04 Dec 2018 03:31:54 -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; dkim=pass header.i=@kernel.org header.s=default header.b=dAU50fyt; 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 S1726600AbeLDK4y (ORCPT + 99 others); Tue, 4 Dec 2018 05:56:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:40356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbeLDK4w (ORCPT ); Tue, 4 Dec 2018 05:56:52 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD199214C1; Tue, 4 Dec 2018 10:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921011; bh=ejD9z2vq4NGsZYcfIvqKwJ3+sZ9sSfB4OrebASCyBj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAU50fytSf0kuwbJIfO6YjB3ghIxYXYAGYI3YJyh8xllv0L52WovuLvcKmK1ybYNY sRbdPQmA3wlDiLkN+Lr2LSeANlEdch8Eo7ifJZtdqVK4AVunSJAB7A4U3WYDk1FWPg mojPdevYg5zhLWPtHs/xbUVMCOyMbFeZJS5WNul8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Jiri Kosina , Tom Lendacky , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Dave Stewart , Kees Cook Subject: [PATCH 4.19 046/139] x86/speculation: Mark string arrays const correctly Date: Tue, 4 Dec 2018 11:48:47 +0100 Message-Id: <20181204103651.882425737@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Gleixner tglx@linutronix.de commit 8770709f411763884535662744a3786a1806afd3 upstream checkpatch.pl muttered when reshuffling the code: WARNING: static const char * array should probably be static const char * const Fix up all the string arrays. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Peter Zijlstra Cc: Andy Lutomirski Cc: Linus Torvalds Cc: Jiri Kosina Cc: Tom Lendacky Cc: Josh Poimboeuf Cc: Andrea Arcangeli Cc: David Woodhouse Cc: Tim Chen Cc: Andi Kleen Cc: Dave Hansen Cc: Casey Schaufler Cc: Asit Mallick Cc: Arjan van de Ven Cc: Jon Masters Cc: Waiman Long Cc: Greg KH Cc: Dave Stewart Cc: Kees Cook Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20181125185004.800018931@linutronix.de Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/bugs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -237,7 +237,7 @@ enum spectre_v2_mitigation_cmd { SPECTRE_V2_CMD_RETPOLINE_AMD, }; -static const char *spectre_v2_strings[] = { +static const char * const spectre_v2_strings[] = { [SPECTRE_V2_NONE] = "Vulnerable", [SPECTRE_V2_RETPOLINE_GENERIC] = "Mitigation: Full generic retpoline", [SPECTRE_V2_RETPOLINE_AMD] = "Mitigation: Full AMD retpoline", @@ -474,7 +474,7 @@ enum ssb_mitigation_cmd { SPEC_STORE_BYPASS_CMD_SECCOMP, }; -static const char *ssb_strings[] = { +static const char * const ssb_strings[] = { [SPEC_STORE_BYPASS_NONE] = "Vulnerable", [SPEC_STORE_BYPASS_DISABLE] = "Mitigation: Speculative Store Bypass disabled", [SPEC_STORE_BYPASS_PRCTL] = "Mitigation: Speculative Store Bypass disabled via prctl", @@ -814,7 +814,7 @@ early_param("l1tf", l1tf_cmdline); #define L1TF_DEFAULT_MSG "Mitigation: PTE Inversion" #if IS_ENABLED(CONFIG_KVM_INTEL) -static const char *l1tf_vmx_states[] = { +static const char * const l1tf_vmx_states[] = { [VMENTER_L1D_FLUSH_AUTO] = "auto", [VMENTER_L1D_FLUSH_NEVER] = "vulnerable", [VMENTER_L1D_FLUSH_COND] = "conditional cache flushes",