From patchwork Mon Aug 25 21:26:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Krause X-Patchwork-Id: 4776851 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9CDA0C0338 for ; Mon, 25 Aug 2014 21:27:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7324201C7 for ; Mon, 25 Aug 2014 21:27:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B945201DC for ; Mon, 25 Aug 2014 21:27:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933475AbaHYV1U (ORCPT ); Mon, 25 Aug 2014 17:27:20 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:46164 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933370AbaHYV1N (ORCPT ); Mon, 25 Aug 2014 17:27:13 -0400 Received: by mail-we0-f178.google.com with SMTP id w61so13925391wes.37 for ; Mon, 25 Aug 2014 14:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nI5+IfUKykApZO83tH77rMVVQ7SgfeC6pedSP3KtHu4=; b=A8+XlVhFDTEUeBPdzoEYaSt4pgbstVOmz+Nd4vjh1T89hzm+whTSkSKfYMy9oXBYxL 9OtJfJWT0DT5ppTyaZRKq2QRLPnKJeQe/haJh3qZ6ipwyIl8dGjT07/rfyNHmlI0fuu+ +9Y2jSLle4ZSIZ6fvLogmiKY3i8tP4r9ocpLUwSlU4fgFPMGpucpAfd+Yjb1Y95oO5TA FbOBpTDoeDWLabLuZWpmxxXJ9cJIsrIlrqILZlO+H87pWcxGeifC+V9k7qt0ACNrkdN4 Kl8nyuY7Q5uL3sqFFTtBacJOcYl1o/fZYXPOfehdFHpOa0VjY9ybx8FxXFg2UGFhWSWo gmOQ== X-Received: by 10.194.58.244 with SMTP id u20mr25838317wjq.36.1409002032529; Mon, 25 Aug 2014 14:27:12 -0700 (PDT) Received: from jig.fritz.box (p4FF2823D.dip0.t-ipconnect.de. [79.242.130.61]) by mx.google.com with ESMTPSA id lh5sm2622976wjb.12.2014.08.25.14.27.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Aug 2014 14:27:11 -0700 (PDT) From: Mathias Krause To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Mathias Krause Subject: [PATCH 4/5] x86/PCI: Constify pci_mmcfg_probes[] array Date: Mon, 25 Aug 2014 23:26:38 +0200 Message-Id: <1409001999-23161-5-git-send-email-minipli@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409001999-23161-1-git-send-email-minipli@googlemail.com> References: <1409001999-23161-1-git-send-email-minipli@googlemail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The pci_mmcfg_probes[] array is only ever read, therefore make it const. Signed-off-by: Mathias Krause --- arch/x86/pci/mmconfig-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 63fc0d4d58..326198a443 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c @@ -306,7 +306,7 @@ struct pci_mmcfg_hostbridge_probe { const char *(*probe)(void); }; -static struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initdata = { +static const struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initconst = { { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7520_MCH, pci_mmcfg_e7520 }, { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,