diff options
| author | David S. Miller <davem@davemloft.net> | 2011-05-31 22:27:48 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-05-31 22:28:32 -0400 |
| commit | 948252cb9e01d65a89ecadf67be5018351eee15e (patch) | |
| tree | c26e0de3e2b938139f2673cff12520e100f0cd3b | |
| parent | 930a6eac9f40e692bd9670d89bcd9ac0f4019356 (diff) | |
Revert "net: fix section mismatches"
This reverts commit e5cb966c0838e4da43a3b0751bdcac7fe719f7b4.
It causes new build regressions with gcc-4.2 which is
pretty common on non-x86 platforms.
Reported-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/3c509.c | 14 | ||||
| -rw-r--r-- | drivers/net/3c59x.c | 4 | ||||
| -rw-r--r-- | drivers/net/depca.c | 35 | ||||
| -rw-r--r-- | drivers/net/hp100.c | 12 | ||||
| -rw-r--r-- | drivers/net/ibmlana.c | 4 | ||||
| -rw-r--r-- | drivers/net/irda/smsc-ircc2.c | 44 | ||||
| -rw-r--r-- | drivers/net/ne3210.c | 15 | ||||
| -rw-r--r-- | drivers/net/smc-mca.c | 6 | ||||
| -rw-r--r-- | drivers/net/tokenring/madgemc.c | 2 | ||||
| -rw-r--r-- | drivers/net/tulip/de4x5.c | 4 |
10 files changed, 68 insertions, 72 deletions
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c index 5f25889e27ef..44b28b2d7003 100644 --- a/drivers/net/3c509.c +++ b/drivers/net/3c509.c | |||
| @@ -185,7 +185,7 @@ static int max_interrupt_work = 10; | |||
| 185 | static int nopnp; | 185 | static int nopnp; |
| 186 | #endif | 186 | #endif |
| 187 | 187 | ||
| 188 | static int el3_common_init(struct net_device *dev); | 188 | static int __devinit el3_common_init(struct net_device *dev); |
| 189 | static void el3_common_remove(struct net_device *dev); | 189 | static void el3_common_remove(struct net_device *dev); |
| 190 | static ushort id_read_eeprom(int index); | 190 | static ushort id_read_eeprom(int index); |
| 191 | static ushort read_eeprom(int ioaddr, int index); | 191 | static ushort read_eeprom(int ioaddr, int index); |
| @@ -395,7 +395,7 @@ static struct isa_driver el3_isa_driver = { | |||
| 395 | static int isa_registered; | 395 | static int isa_registered; |
| 396 | 396 | ||
| 397 | #ifdef CONFIG_PNP | 397 | #ifdef CONFIG_PNP |
| 398 | static const struct pnp_device_id el3_pnp_ids[] __devinitconst = { | 398 | static struct pnp_device_id el3_pnp_ids[] = { |
| 399 | { .id = "TCM5090" }, /* 3Com Etherlink III (TP) */ | 399 | { .id = "TCM5090" }, /* 3Com Etherlink III (TP) */ |
| 400 | { .id = "TCM5091" }, /* 3Com Etherlink III */ | 400 | { .id = "TCM5091" }, /* 3Com Etherlink III */ |
| 401 | { .id = "TCM5094" }, /* 3Com Etherlink III (combo) */ | 401 | { .id = "TCM5094" }, /* 3Com Etherlink III (combo) */ |
| @@ -478,7 +478,7 @@ static int pnp_registered; | |||
| 478 | #endif /* CONFIG_PNP */ | 478 | #endif /* CONFIG_PNP */ |
| 479 | 479 | ||
| 480 | #ifdef CONFIG_EISA | 480 | #ifdef CONFIG_EISA |
| 481 | static const struct eisa_device_id el3_eisa_ids[] __devinitconst = { | 481 | static struct eisa_device_id el3_eisa_ids[] = { |
| 482 | { "TCM5090" }, | 482 | { "TCM5090" }, |
| 483 | { "TCM5091" }, | 483 | { "TCM5091" }, |
| 484 | { "TCM5092" }, | 484 | { "TCM5092" }, |
| @@ -508,7 +508,7 @@ static int eisa_registered; | |||
| 508 | #ifdef CONFIG_MCA | 508 | #ifdef CONFIG_MCA |
| 509 | static int el3_mca_probe(struct device *dev); | 509 | static int el3_mca_probe(struct device *dev); |
| 510 | 510 | ||
| 511 | static const short el3_mca_adapter_ids[] __devinitconst = { | 511 | static short el3_mca_adapter_ids[] __initdata = { |
| 512 | 0x627c, | 512 | 0x627c, |
| 513 | 0x627d, | 513 | 0x627d, |
| 514 | 0x62db, | 514 | 0x62db, |
| @@ -517,7 +517,7 @@ static const short el3_mca_adapter_ids[] __devinitconst = { | |||
| 517 | 0x0000 | 517 | 0x0000 |
| 518 | }; | 518 | }; |
| 519 | 519 | ||
| 520 | static const char *const el3_mca_adapter_names[] __devinitconst = { | 520 | static char *el3_mca_adapter_names[] __initdata = { |
| 521 | "3Com 3c529 EtherLink III (10base2)", | 521 | "3Com 3c529 EtherLink III (10base2)", |
| 522 | "3Com 3c529 EtherLink III (10baseT)", | 522 | "3Com 3c529 EtherLink III (10baseT)", |
| 523 | "3Com 3c529 EtherLink III (test mode)", | 523 | "3Com 3c529 EtherLink III (test mode)", |
| @@ -601,7 +601,7 @@ static void el3_common_remove (struct net_device *dev) | |||
| 601 | } | 601 | } |
| 602 | 602 | ||
| 603 | #ifdef CONFIG_MCA | 603 | #ifdef CONFIG_MCA |
| 604 | static int __devinit el3_mca_probe(struct device *device) | 604 | static int __init el3_mca_probe(struct device *device) |
| 605 | { | 605 | { |
| 606 | /* Based on Erik Nygren's (nygren@mit.edu) 3c529 patch, | 606 | /* Based on Erik Nygren's (nygren@mit.edu) 3c529 patch, |
| 607 | * heavily modified by Chris Beauregard | 607 | * heavily modified by Chris Beauregard |
| @@ -671,7 +671,7 @@ static int __devinit el3_mca_probe(struct device *device) | |||
| 671 | #endif /* CONFIG_MCA */ | 671 | #endif /* CONFIG_MCA */ |
| 672 | 672 | ||
| 673 | #ifdef CONFIG_EISA | 673 | #ifdef CONFIG_EISA |
| 674 | static int __devinit el3_eisa_probe (struct device *device) | 674 | static int __init el3_eisa_probe (struct device *device) |
| 675 | { | 675 | { |
| 676 | short i; | 676 | short i; |
| 677 | int ioaddr, irq, if_port; | 677 | int ioaddr, irq, if_port; |
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 99f43d275442..8cc22568ebd3 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
| @@ -901,14 +901,14 @@ static const struct dev_pm_ops vortex_pm_ops = { | |||
| 901 | #endif /* !CONFIG_PM */ | 901 | #endif /* !CONFIG_PM */ |
| 902 | 902 | ||
| 903 | #ifdef CONFIG_EISA | 903 | #ifdef CONFIG_EISA |
| 904 | static const struct eisa_device_id vortex_eisa_ids[] __devinitconst = { | 904 | static struct eisa_device_id vortex_eisa_ids[] = { |
| 905 | { "TCM5920", CH_3C592 }, | 905 | { "TCM5920", CH_3C592 }, |
| 906 | { "TCM5970", CH_3C597 }, | 906 | { "TCM5970", CH_3C597 }, |
| 907 | { "" } | 907 | { "" } |
| 908 | }; | 908 | }; |
| 909 | MODULE_DEVICE_TABLE(eisa, vortex_eisa_ids); | 909 | MODULE_DEVICE_TABLE(eisa, vortex_eisa_ids); |
| 910 | 910 | ||
| 911 | static int __devinit vortex_eisa_probe(struct device *device) | 911 | static int __init vortex_eisa_probe(struct device *device) |
| 912 | { | 912 | { |
| 913 | void __iomem *ioaddr; | 913 | void __iomem *ioaddr; |
| 914 | struct eisa_device *edev; | 914 | struct eisa_device *edev; |
diff --git a/drivers/net/depca.c b/drivers/net/depca.c index 17654059922d..8b0084d17c8c 100644 --- a/drivers/net/depca.c +++ b/drivers/net/depca.c | |||
| @@ -331,18 +331,18 @@ static struct { | |||
| 331 | "DE422",\ | 331 | "DE422",\ |
| 332 | ""} | 332 | ""} |
| 333 | 333 | ||
| 334 | static const char* const depca_signature[] __devinitconst = DEPCA_SIGNATURE; | 334 | static char* __initdata depca_signature[] = DEPCA_SIGNATURE; |
| 335 | 335 | ||
| 336 | enum depca_type { | 336 | enum depca_type { |
| 337 | DEPCA, de100, de101, de200, de201, de202, de210, de212, de422, unknown | 337 | DEPCA, de100, de101, de200, de201, de202, de210, de212, de422, unknown |
| 338 | }; | 338 | }; |
| 339 | 339 | ||
| 340 | static const char depca_string[] = "depca"; | 340 | static char depca_string[] = "depca"; |
| 341 | 341 | ||
| 342 | static int depca_device_remove (struct device *device); | 342 | static int depca_device_remove (struct device *device); |
| 343 | 343 | ||
| 344 | #ifdef CONFIG_EISA | 344 | #ifdef CONFIG_EISA |
| 345 | static const struct eisa_device_id depca_eisa_ids[] __devinitconst = { | 345 | static struct eisa_device_id depca_eisa_ids[] = { |
| 346 | { "DEC4220", de422 }, | 346 | { "DEC4220", de422 }, |
| 347 | { "" } | 347 | { "" } |
| 348 | }; | 348 | }; |
| @@ -367,19 +367,19 @@ static struct eisa_driver depca_eisa_driver = { | |||
| 367 | #define DE210_ID 0x628d | 367 | #define DE210_ID 0x628d |
| 368 | #define DE212_ID 0x6def | 368 | #define DE212_ID 0x6def |
| 369 | 369 | ||
| 370 | static const short depca_mca_adapter_ids[] __devinitconst = { | 370 | static short depca_mca_adapter_ids[] = { |
| 371 | DE210_ID, | 371 | DE210_ID, |
| 372 | DE212_ID, | 372 | DE212_ID, |
| 373 | 0x0000 | 373 | 0x0000 |
| 374 | }; | 374 | }; |
| 375 | 375 | ||
| 376 | static const char *depca_mca_adapter_name[] = { | 376 | static char *depca_mca_adapter_name[] = { |
| 377 | "DEC EtherWORKS MC Adapter (DE210)", | 377 | "DEC EtherWORKS MC Adapter (DE210)", |
| 378 | "DEC EtherWORKS MC Adapter (DE212)", | 378 | "DEC EtherWORKS MC Adapter (DE212)", |
| 379 | NULL | 379 | NULL |
| 380 | }; | 380 | }; |
| 381 | 381 | ||
| 382 | static const enum depca_type depca_mca_adapter_type[] = { | 382 | static enum depca_type depca_mca_adapter_type[] = { |
| 383 | de210, | 383 | de210, |
| 384 | de212, | 384 | de212, |
| 385 | 0 | 385 | 0 |
| @@ -541,9 +541,10 @@ static void SetMulticastFilter(struct net_device *dev); | |||
| 541 | static int load_packet(struct net_device *dev, struct sk_buff *skb); | 541 | static int load_packet(struct net_device *dev, struct sk_buff *skb); |
| 542 | static void depca_dbg_open(struct net_device *dev); | 542 | static void depca_dbg_open(struct net_device *dev); |
| 543 | 543 | ||
| 544 | static const u_char de1xx_irq[] __devinitconst = { 2, 3, 4, 5, 7, 9, 0 }; | 544 | static u_char de1xx_irq[] __initdata = { 2, 3, 4, 5, 7, 9, 0 }; |
| 545 | static const u_char de2xx_irq[] __devinitconst = { 5, 9, 10, 11, 15, 0 }; | 545 | static u_char de2xx_irq[] __initdata = { 5, 9, 10, 11, 15, 0 }; |
| 546 | static const u_char de422_irq[] __devinitconst = { 5, 9, 10, 11, 0 }; | 546 | static u_char de422_irq[] __initdata = { 5, 9, 10, 11, 0 }; |
| 547 | static u_char *depca_irq; | ||
| 547 | 548 | ||
| 548 | static int irq; | 549 | static int irq; |
| 549 | static int io; | 550 | static int io; |
| @@ -579,7 +580,7 @@ static const struct net_device_ops depca_netdev_ops = { | |||
| 579 | .ndo_validate_addr = eth_validate_addr, | 580 | .ndo_validate_addr = eth_validate_addr, |
| 580 | }; | 581 | }; |
| 581 | 582 | ||
| 582 | static int __devinit depca_hw_init (struct net_device *dev, struct device *device) | 583 | static int __init depca_hw_init (struct net_device *dev, struct device *device) |
| 583 | |||
