mirror of https://gitee.com/openkylin/linux.git
EDAC: Make pci_device_id tables __devinitconst.
These const tables are currently marked __devinitdata, but Documentation/PCI/pci.txt says: "o The ID table array should be marked __devinitconst; this is done automatically if the table is declared with DEFINE_PCI_DEVICE_TABLE()." So use DEFINE_PCI_DEVICE_TABLE(x). Based on PaX and earlier work by Andi Kleen. Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
5e8e19bf6c
commit
36c46f31df
|
@ -2707,7 +2707,7 @@ static void __devexit amd64_remove_one_instance(struct pci_dev *pdev)
|
|||
* PCI core identifies what devices are on a system during boot, and then
|
||||
* inquiry this table to see if this driver is for a given device found.
|
||||
*/
|
||||
static const struct pci_device_id amd64_pci_table[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(amd64_pci_table) = {
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_AMD,
|
||||
.device = PCI_DEVICE_ID_AMD_K8_NB_MEMCTL,
|
||||
|
|
|
@ -321,7 +321,7 @@ static void __devexit amd76x_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id amd76x_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(amd76x_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(AMD, FE_GATE_700C), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
AMD762},
|
||||
|
|
|
@ -1380,7 +1380,7 @@ static void __devexit e752x_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id e752x_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(e752x_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 7520_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
E7520},
|
||||
|
|
|
@ -525,7 +525,7 @@ static void __devexit e7xxx_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id e7xxx_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(e7xxx_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 7205_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
E7205},
|
||||
|
|
|
@ -470,7 +470,7 @@ static void __devexit i3000_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i3000_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i3000_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 3000_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
I3000},
|
||||
|
|
|
@ -445,7 +445,7 @@ static void __devexit i3200_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i3200_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i3200_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 3200_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
I3200},
|
||||
|
|
|
@ -1516,7 +1516,7 @@ static void __devexit i5000_remove_one(struct pci_dev *pdev)
|
|||
*
|
||||
* The "E500P" device is the first device supported.
|
||||
*/
|
||||
static const struct pci_device_id i5000_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i5000_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000_DEV16),
|
||||
.driver_data = I5000P},
|
||||
|
||||
|
|
|
@ -1051,7 +1051,7 @@ static void __devexit i5100_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i5100_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i5100_pci_tbl) = {
|
||||
/* Device 16, Function 0, Channel 0 Memory Map, Error Flag/Mask, ... */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5100_16) },
|
||||
{ 0, }
|
||||
|
|
|
@ -1383,7 +1383,7 @@ static void __devexit i5400_remove_one(struct pci_dev *pdev)
|
|||
*
|
||||
* The "E500P" device is the first device supported.
|
||||
*/
|
||||
static const struct pci_device_id i5400_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i5400_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR)},
|
||||
{0,} /* 0 terminated list. */
|
||||
};
|
||||
|
|
|
@ -1192,7 +1192,7 @@ static void __devexit i7300_remove_one(struct pci_dev *pdev)
|
|||
*
|
||||
* Has only 8086:360c PCI ID
|
||||
*/
|
||||
static const struct pci_device_id i7300_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i7300_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I7300_MCH_ERR)},
|
||||
{0,} /* 0 terminated list. */
|
||||
};
|
||||
|
|
|
@ -391,7 +391,7 @@ static const struct pci_id_table pci_dev_table[] = {
|
|||
/*
|
||||
* pci_device_id table for which devices we are looking for
|
||||
*/
|
||||
static const struct pci_device_id i7core_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i7core_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)},
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)},
|
||||
{0,} /* 0 terminated list. */
|
||||
|
|
|
@ -380,7 +380,7 @@ static void __devexit i82443bxgx_edacmc_remove_one(struct pci_dev *pdev)
|
|||
|
||||
EXPORT_SYMBOL_GPL(i82443bxgx_edacmc_remove_one);
|
||||
|
||||
static const struct pci_device_id i82443bxgx_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i82443bxgx_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_0)},
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_2)},
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443GX_0)},
|
||||
|
|
|
@ -270,7 +270,7 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i82860_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i82860_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
I82860},
|
||||
|
|
|
@ -511,7 +511,7 @@ static void __devexit i82875p_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i82875p_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i82875p_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 82875_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
I82875P},
|
||||
|
|
|
@ -612,7 +612,7 @@ static void __devexit i82975x_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i82975x_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i82975x_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, 82975_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
I82975X
|
||||
|
|
|
@ -373,7 +373,7 @@ static void __devexit r82600_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id r82600_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(r82600_pci_tbl) = {
|
||||
{
|
||||
PCI_DEVICE(PCI_VENDOR_ID_RADISYS, R82600_BRIDGE_ID)
|
||||
},
|
||||
|
|
|
@ -367,7 +367,7 @@ static const struct pci_id_table pci_dev_descr_sbridge_table[] = {
|
|||
/*
|
||||
* pci_device_id table for which devices we are looking for
|
||||
*/
|
||||
static const struct pci_device_id sbridge_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(sbridge_pci_tbl) = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA)},
|
||||
{0,} /* 0 terminated list. */
|
||||
};
|
||||
|
|
|
@ -440,7 +440,7 @@ static void __devexit x38_remove_one(struct pci_dev *pdev)
|
|||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id x38_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(x38_pci_tbl) = {
|
||||
{
|
||||
PCI_VEND_DEV(INTEL, X38_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
||||
X38},
|
||||
|
|
Loading…
Reference in New Issue