Ever wondered where those "setting incorrect section attributes for
rodata.pci_driver" warnings are coming from? We were packing those structures into a read-only segment, but forgot to mark them const. Despite its size, this is a fairly trivial patch created by a simple search/replace Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2891 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
0dff6e3fa9
commit
f1cf1f7c3a
@@ -28,7 +28,7 @@ static struct device_operations ac97audio_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver ac97audio_driver __pci_driver = {
|
||||
static const struct pci_driver ac97audio_driver __pci_driver = {
|
||||
.ops = &ac97audio_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x746D,
|
||||
@@ -45,7 +45,7 @@ static struct device_operations ac97modem_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver ac97modem_driver __pci_driver = {
|
||||
static const struct pci_driver ac97modem_driver __pci_driver = {
|
||||
.ops = &ac97modem_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x746E,
|
||||
|
@@ -213,7 +213,7 @@ static struct device_operations acpi_ops = {
|
||||
.ops_smbus_bus = &lops_smbus_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver acpi_driver __pci_driver = {
|
||||
static const struct pci_driver acpi_driver __pci_driver = {
|
||||
.ops = &acpi_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_ACPI,
|
||||
|
@@ -58,7 +58,7 @@ static struct device_operations ide_ops = {
|
||||
.ops_pci = &lops_pci
|
||||
};
|
||||
|
||||
static struct pci_driver ide_driver __pci_driver = {
|
||||
static const struct pci_driver ide_driver __pci_driver = {
|
||||
.ops = &ide_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_IDE,
|
||||
|
@@ -198,7 +198,7 @@ static struct device_operations lpc_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver lpc_driver __pci_driver = {
|
||||
static const struct pci_driver lpc_driver __pci_driver = {
|
||||
.ops = &lpc_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_ISA,
|
||||
|
@@ -82,7 +82,7 @@ static struct device_operations nic_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver nic_driver __pci_driver = {
|
||||
static const struct pci_driver nic_driver __pci_driver = {
|
||||
.ops = &nic_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_NIC,
|
||||
|
@@ -60,7 +60,7 @@ static struct device_operations pci_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver pci_driver __pci_driver = {
|
||||
static const struct pci_driver pci_driver __pci_driver = {
|
||||
.ops = &pci_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_PCI,
|
||||
|
@@ -34,7 +34,7 @@ static struct device_operations smbus_ops = {
|
||||
.ops_smbus_bus = &lops_smbus_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver smbus_driver __pci_driver = {
|
||||
static const struct pci_driver smbus_driver __pci_driver = {
|
||||
.ops = &smbus_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_SMB,
|
||||
|
@@ -30,7 +30,7 @@ static struct device_operations usb_ops = {
|
||||
.ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver usb_driver __pci_driver = {
|
||||
static const struct pci_driver usb_driver __pci_driver = {
|
||||
.ops = &usb_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_USB,
|
||||
|
@@ -38,7 +38,7 @@ static struct device_operations usb2_ops = {
|
||||
// .ops_pci = &lops_pci,
|
||||
};
|
||||
|
||||
static struct pci_driver usb2_driver __pci_driver = {
|
||||
static const struct pci_driver usb2_driver __pci_driver = {
|
||||
.ops = &usb2_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_8111_USB2,
|
||||
|
@@ -80,7 +80,7 @@ static struct device_operations pcix_ops = {
|
||||
.enable = amd8131_enable,
|
||||
};
|
||||
|
||||
static struct pci_driver pcix_driver __pci_driver = {
|
||||
static const struct pci_driver pcix_driver __pci_driver = {
|
||||
.ops = &pcix_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7450,
|
||||
@@ -108,7 +108,7 @@ static struct device_operations ioapic_ops = {
|
||||
.enable = ioapic_enable,
|
||||
};
|
||||
|
||||
static struct pci_driver ioapic_driver __pci_driver = {
|
||||
static const struct pci_driver ioapic_driver __pci_driver = {
|
||||
.ops = &ioapic_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7451,
|
||||
|
@@ -394,7 +394,7 @@ static struct device_operations pcix_ops = {
|
||||
.reset_bus = pci_bus_reset,
|
||||
};
|
||||
|
||||
static struct pci_driver pcix_driver __pci_driver = {
|
||||
static const struct pci_driver pcix_driver __pci_driver = {
|
||||
.ops = &pcix_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7450,
|
||||
@@ -427,7 +427,7 @@ static struct device_operations ioapic_ops = {
|
||||
.ops_pci = &pci_ops_pci_dev,
|
||||
};
|
||||
|
||||
static struct pci_driver ioapic_driver __pci_driver = {
|
||||
static const struct pci_driver ioapic_driver __pci_driver = {
|
||||
.ops = &ioapic_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7451,
|
||||
|
@@ -380,7 +380,7 @@ static struct device_operations pcix_ops = {
|
||||
.reset_bus = pci_bus_reset,
|
||||
};
|
||||
|
||||
static struct pci_driver pcix_driver __pci_driver = {
|
||||
static const struct pci_driver pcix_driver __pci_driver = {
|
||||
.ops = &pcix_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7458,
|
||||
@@ -449,7 +449,7 @@ static struct device_operations ioapic_ops = {
|
||||
.ops_pci = &pci_ops_pci_dev,
|
||||
};
|
||||
|
||||
static struct pci_driver ioapic_driver __pci_driver = {
|
||||
static const struct pci_driver ioapic_driver __pci_driver = {
|
||||
.ops = &ioapic_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7459,
|
||||
|
@@ -29,7 +29,7 @@ static struct device_operations agp3bridge_ops = {
|
||||
.scan_bus = pci_scan_bridge,
|
||||
};
|
||||
|
||||
static struct pci_driver agp3bridge_driver __pci_driver = {
|
||||
static const struct pci_driver agp3bridge_driver __pci_driver = {
|
||||
.ops = &agp3bridge_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7455, // AGP Bridge
|
||||
@@ -68,7 +68,7 @@ static struct device_operations agp3dev_ops = {
|
||||
.ops_pci = &pci_ops_pci_dev,
|
||||
};
|
||||
|
||||
static struct pci_driver agp3dev_driver __pci_driver = {
|
||||
static const struct pci_driver agp3dev_driver __pci_driver = {
|
||||
.ops = &agp3dev_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = 0x7454, //AGP Device
|
||||
|
@@ -71,7 +71,7 @@ static struct device_operations ide_ops = {
|
||||
.ops_pci = 0,
|
||||
};
|
||||
|
||||
static struct pci_driver ide_driver __pci_driver = {
|
||||
static const struct pci_driver ide_driver __pci_driver = {
|
||||
.ops = &ide_ops,
|
||||
.vendor = PCI_VENDOR_ID_CYRIX,
|
||||
.device = PCI_DEVICE_ID_CYRIX_5530_IDE,
|
||||
|
@@ -53,7 +53,7 @@ static struct device_operations isa_ops = {
|
||||
.scan_bus = scan_static_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver isa_driver __pci_driver = {
|
||||
static const struct pci_driver isa_driver __pci_driver = {
|
||||
.ops = &isa_ops,
|
||||
.vendor = PCI_VENDOR_ID_CYRIX,
|
||||
.device = PCI_DEVICE_ID_CYRIX_5530_LEGACY,
|
||||
|
@@ -484,7 +484,7 @@ static struct device_operations vga_ops = {
|
||||
.enable = NULL, /* not required */
|
||||
};
|
||||
|
||||
static struct pci_driver vga_pci_driver __pci_driver = {
|
||||
static const struct pci_driver vga_pci_driver __pci_driver = {
|
||||
.ops = &vga_ops,
|
||||
.vendor = PCI_VENDOR_ID_CYRIX,
|
||||
.device = PCI_DEVICE_ID_CYRIX_5530_VIDEO,
|
||||
|
@@ -85,7 +85,7 @@ static struct device_operations southbridge_ops = {
|
||||
.scan_bus = scan_static_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver cs5535_pci_driver __pci_driver = {
|
||||
static const struct pci_driver cs5535_pci_driver __pci_driver = {
|
||||
.ops = &southbridge_ops,
|
||||
.vendor = PCI_VENDOR_ID_NS,
|
||||
.device = PCI_DEVICE_ID_NS_CS5535
|
||||
|
@@ -23,7 +23,7 @@ static struct device_operations ide_ops = {
|
||||
.enable = ide_enable,
|
||||
};
|
||||
|
||||
static struct pci_driver ide_driver __pci_driver = {
|
||||
static const struct pci_driver ide_driver __pci_driver = {
|
||||
.ops = &ide_ops,
|
||||
.vendor = PCI_VENDOR_ID_NS,
|
||||
.device = PCI_DEVICE_ID_NS_CS5535_IDE,
|
||||
|
@@ -627,7 +627,7 @@ static struct device_operations southbridge_ops = {
|
||||
.scan_bus = scan_static_bus,
|
||||
};
|
||||
|
||||
static struct pci_driver cs5536_pci_driver __pci_driver = {
|
||||
static const struct pci_driver cs5536_pci_driver __pci_driver = {
|
||||
.ops = &southbridge_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_CS5536_ISA
|
||||
|
@@ -61,7 +61,7 @@ static struct device_operations ide_ops = {
|
||||
.enable = 0,
|
||||
};
|
||||
|
||||
static struct pci_driver ide_driver __pci_driver = {
|
||||
static const struct pci_driver ide_driver __pci_driver = {
|
||||
.ops = &ide_ops,
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_CS5536_B0_IDE,
|
||||
|
Reference in New Issue
Block a user