Commit 0ec6d95053885055a50d973b3a3906905a78a8bf

Authored by Eugene Surovegin
Committed by Jeff Garzik
1 parent bb33808d28

ibm_emac: fix section mismatch warnings

Fix "Section mismatch" warnings

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

Showing 8 changed files with 8 additions and 10 deletions Side-by-side Diff

drivers/net/ibm_emac/ibm_emac_mal.c
... ... @@ -59,8 +59,7 @@
59 59 return 0;
60 60 }
61 61  
62   -void __exit mal_unregister_commac(struct ibm_ocp_mal *mal,
63   - struct mal_commac *commac)
  62 +void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac)
64 63 {
65 64 unsigned long flags;
66 65 local_irq_save(flags);
drivers/net/ibm_emac/ibm_emac_mal.h
... ... @@ -223,8 +223,7 @@
223 223  
224 224 int mal_register_commac(struct ibm_ocp_mal *mal,
225 225 struct mal_commac *commac) __init;
226   -void mal_unregister_commac(struct ibm_ocp_mal *mal,
227   - struct mal_commac *commac) __exit;
  226 +void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac);
228 227 int mal_set_rcbs(struct ibm_ocp_mal *mal, int channel, unsigned long size);
229 228  
230 229 /* Returns BD ring offset for a particular channel
drivers/net/ibm_emac/ibm_emac_rgmii.c
... ... @@ -162,7 +162,7 @@
162 162 out_be32(&dev->base->ssr, ssr);
163 163 }
164 164  
165   -void __exit __rgmii_fini(struct ocp_device *ocpdev, int input)
  165 +void __rgmii_fini(struct ocp_device *ocpdev, int input)
166 166 {
167 167 struct ibm_ocp_rgmii *dev = ocp_get_drvdata(ocpdev);
168 168 BUG_ON(!dev || dev->users == 0);
drivers/net/ibm_emac/ibm_emac_rgmii.h
... ... @@ -37,7 +37,7 @@
37 37 #ifdef CONFIG_IBM_EMAC_RGMII
38 38 int rgmii_attach(void *emac) __init;
39 39  
40   -void __rgmii_fini(struct ocp_device *ocpdev, int input) __exit;
  40 +void __rgmii_fini(struct ocp_device *ocpdev, int input);
41 41 static inline void rgmii_fini(struct ocp_device *ocpdev, int input)
42 42 {
43 43 if (ocpdev)
drivers/net/ibm_emac/ibm_emac_tah.c
... ... @@ -63,7 +63,7 @@
63 63 return 0;
64 64 }
65 65  
66   -void __exit __tah_fini(struct ocp_device *ocpdev)
  66 +void __tah_fini(struct ocp_device *ocpdev)
67 67 {
68 68 struct tah_regs *p = ocp_get_drvdata(ocpdev);
69 69 BUG_ON(!p);
drivers/net/ibm_emac/ibm_emac_tah.h
... ... @@ -55,7 +55,7 @@
55 55 #ifdef CONFIG_IBM_EMAC_TAH
56 56 int tah_attach(void *emac) __init;
57 57  
58   -void __tah_fini(struct ocp_device *ocpdev) __exit;
  58 +void __tah_fini(struct ocp_device *ocpdev);
59 59 static inline void tah_fini(struct ocp_device *ocpdev)
60 60 {
61 61 if (ocpdev)
drivers/net/ibm_emac/ibm_emac_zmii.c
... ... @@ -215,7 +215,7 @@
215 215 out_be32(&dev->base->ssr, ssr);
216 216 }
217 217  
218   -void __exit __zmii_fini(struct ocp_device *ocpdev, int input)
  218 +void __zmii_fini(struct ocp_device *ocpdev, int input)
219 219 {
220 220 struct ibm_ocp_zmii *dev = ocp_get_drvdata(ocpdev);
221 221 BUG_ON(!dev || dev->users == 0);
drivers/net/ibm_emac/ibm_emac_zmii.h
... ... @@ -40,7 +40,7 @@
40 40 #ifdef CONFIG_IBM_EMAC_ZMII
41 41 int zmii_attach(void *emac) __init;
42 42  
43   -void __zmii_fini(struct ocp_device *ocpdev, int input) __exit;
  43 +void __zmii_fini(struct ocp_device *ocpdev, int input);
44 44 static inline void zmii_fini(struct ocp_device *ocpdev, int input)
45 45 {
46 46 if (ocpdev)