x86/PCI: Constify pci_mmcfg_probes[] array
authorMathias Krause <minipli@googlemail.com>
Mon, 25 Aug 2014 21:26:38 +0000 (23:26 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Sep 2014 12:46:22 +0000 (06:46 -0600)
The pci_mmcfg_probes[] array is only ever read, therefore make it const.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
arch/x86/pci/mmconfig-shared.c

index 63fc0d4d5892c4c8e6d7ec6fc072c9d4dc347adc..326198a4434e241cd7b50446586f90653931e7dd 100644 (file)
@@ -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,
This page took 0.02547 seconds and 5 git commands to generate.