Skip to content

Commit

Permalink
ibm_emac: fix section mismatch warnings
Browse files Browse the repository at this point in the history
Fix "Section mismatch" warnings

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Eugene Surovegin authored and Jeff Garzik committed May 18, 2007
1 parent bb33808 commit 0ec6d95
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ibm_emac/ibm_emac_mal.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ int __init mal_register_commac(struct ibm_ocp_mal *mal,
return 0;
}

void __exit mal_unregister_commac(struct ibm_ocp_mal *mal,
struct mal_commac *commac)
void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac)
{
unsigned long flags;
local_irq_save(flags);
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/ibm_emac/ibm_emac_mal.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ void mal_exit(void) __exit;

int mal_register_commac(struct ibm_ocp_mal *mal,
struct mal_commac *commac) __init;
void mal_unregister_commac(struct ibm_ocp_mal *mal,
struct mal_commac *commac) __exit;
void mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac);
int mal_set_rcbs(struct ibm_ocp_mal *mal, int channel, unsigned long size);

/* Returns BD ring offset for a particular channel
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_rgmii.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void rgmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
out_be32(&dev->base->ssr, ssr);
}

void __exit __rgmii_fini(struct ocp_device *ocpdev, int input)
void __rgmii_fini(struct ocp_device *ocpdev, int input)
{
struct ibm_ocp_rgmii *dev = ocp_get_drvdata(ocpdev);
BUG_ON(!dev || dev->users == 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_rgmii.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct ibm_ocp_rgmii {
#ifdef CONFIG_IBM_EMAC_RGMII
int rgmii_attach(void *emac) __init;

void __rgmii_fini(struct ocp_device *ocpdev, int input) __exit;
void __rgmii_fini(struct ocp_device *ocpdev, int input);
static inline void rgmii_fini(struct ocp_device *ocpdev, int input)
{
if (ocpdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_tah.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int __init tah_attach(void *emac)
return 0;
}

void __exit __tah_fini(struct ocp_device *ocpdev)
void __tah_fini(struct ocp_device *ocpdev)
{
struct tah_regs *p = ocp_get_drvdata(ocpdev);
BUG_ON(!p);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_tah.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct tah_regs {
#ifdef CONFIG_IBM_EMAC_TAH
int tah_attach(void *emac) __init;

void __tah_fini(struct ocp_device *ocpdev) __exit;
void __tah_fini(struct ocp_device *ocpdev);
static inline void tah_fini(struct ocp_device *ocpdev)
{
if (ocpdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_zmii.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void __zmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
out_be32(&dev->base->ssr, ssr);
}

void __exit __zmii_fini(struct ocp_device *ocpdev, int input)
void __zmii_fini(struct ocp_device *ocpdev, int input)
{
struct ibm_ocp_zmii *dev = ocp_get_drvdata(ocpdev);
BUG_ON(!dev || dev->users == 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ibm_emac/ibm_emac_zmii.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct ibm_ocp_zmii {
#ifdef CONFIG_IBM_EMAC_ZMII
int zmii_attach(void *emac) __init;

void __zmii_fini(struct ocp_device *ocpdev, int input) __exit;
void __zmii_fini(struct ocp_device *ocpdev, int input);
static inline void zmii_fini(struct ocp_device *ocpdev, int input)
{
if (ocpdev)
Expand Down

0 comments on commit 0ec6d95

Please sign in to comment.