ata_piix.c:piix_init_one() must be __devinit
PATCH 1/1 ata_piix.c:piix_init_one() must be __devinit
This patch fixes the following section mismatches:
<-- snip -->
...
WARNING: drivers/ata/built-in.o(.text+0x15072): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_sata_map()
WARNING: drivers/ata/built-in.o(.text+0x150dd): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_pcs()
WARNING: drivers/ata/built-in.o(.text+0x150e5): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_sidpr()
WARNING: drivers/ata/built-in.o(.text+0x15107): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_check_450nx_errata()
...
<-- snip -->
---222e97f95d38ce7cb41980671cc4383df28b5f7a
drivers/ata/ata_piix.c +2 -1
@@ -1595,7 +1595,8 @@ static void piix_iocfg_bit18_quirk(struct pci_dev *pdev)* Zero on success, or -ERRNO value. */ -static int piix_init_one (struct pci_dev *pdev,const struct pci_device_id *ent) +static int __devinit piix_init_one (struct pci_dev *pdev, +const struct pci_device_id *ent) {static int printed_version;struct device *dev = &pdev->dev;
Jeff Garzik
AppliedQuoted 22 lines · Adrian Bunk
This patch fixes the following section mismatches:
<-- snip -->
...
WARNING: drivers/ata/built-in.o(.text+0x15072): Section mismatch in reference from the functionpiix_init_one()to the function .devinit.text:piix_init_sata_map()
WARNING: drivers/ata/built-in.o(.text+0x150dd): Section mismatch in reference from the functionpiix_init_one()to the function .devinit.text:piix_init_pcs()
WARNING: drivers/ata/built-in.o(.text+0x150e5): Section mismatch in reference from the functionpiix_init_one()to the function .devinit.text:piix_init_sidpr()
WARNING: drivers/ata/built-in.o(.text+0x15107): Section mismatch in reference from the functionpiix_init_one()to the function .devinit.text:piix_check_450nx_errata()
...<-- snip -->
Signed-off-by Adrian Bunk <[email protected]>---
222e97f95d38ce7cb41980671cc4383df28b5f7adiff --gita/drivers/ata/ata_piix.cb/drivers/ata/ata_piix.cindex a65c8ae..7a3b9ef 100644
drivers/ata/ata_piix.c static void piix_iocfg_bit18_quirk(struct pci_dev *pdev) · line 1602
Quoted 9 lines
drivers/ata/ata_piix.c +2
-1@@ -1595,7 +1595,8 @@ static void piix_iocfg_bit18_quirk(struct pci_dev *pdev)* Zero on success, or -ERRNO value. */ -static int piix_init_one (struct pci_dev *pdev,const struct pci_device_id *ent) +static int __devinit piix_init_one (struct pci_dev *pdev, +const struct pci_device_id *ent) {static int printed_version;struct device *dev = &pdev->dev;
applied