* [PATCH 0/2] Fix some section mismatch errors for Octeon network drivers
@ 2010-06-24 19:14 David Daney
2010-06-24 19:14 ` [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors David Daney
2010-06-24 19:14 ` [PATCH 2/2] netdev: mdio-octeon: " David Daney
0 siblings, 2 replies; 5+ messages in thread
From: David Daney @ 2010-06-24 19:14 UTC (permalink / raw)
To: netdev; +Cc: linux-mips, David Daney
It seems the kernel build system is becoming more rigorous in its
checking of section mismatches. Please consider these two patches to
correct the problems.
The warnings were not seen under 2.6.34, so one could argue that these
are fixing a regression (although admittedly it a minor one).
David Daney (2):
netdev: octeon_mgmt: Fix section mismatch errors.
netdev: mdio-octeon: Fix section mismatch errors.
drivers/net/octeon/octeon_mgmt.c | 6 +++---
drivers/net/phy/mdio-octeon.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors.
2010-06-24 19:14 [PATCH 0/2] Fix some section mismatch errors for Octeon network drivers David Daney
@ 2010-06-24 19:14 ` David Daney
2010-06-29 7:00 ` David Miller
2010-06-24 19:14 ` [PATCH 2/2] netdev: mdio-octeon: " David Daney
1 sibling, 1 reply; 5+ messages in thread
From: David Daney @ 2010-06-24 19:14 UTC (permalink / raw)
To: netdev; +Cc: linux-mips, David Daney
We started getting:
WARNING: drivers/net/built-in.o(.data+0x10f0): Section mismatch in
reference from the variable octeon_mgmt_driver to the function
.init.text:octeon_mgmt_probe()
This fixes it.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
drivers/net/octeon/octeon_mgmt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/octeon/octeon_mgmt.c b/drivers/net/octeon/octeon_mgmt.c
index 000e792..f4a0f08 100644
--- a/drivers/net/octeon/octeon_mgmt.c
+++ b/drivers/net/octeon/octeon_mgmt.c
@@ -1067,7 +1067,7 @@ static const struct net_device_ops octeon_mgmt_ops = {
#endif
};
-static int __init octeon_mgmt_probe(struct platform_device *pdev)
+static int __devinit octeon_mgmt_probe(struct platform_device *pdev)
{
struct resource *res_irq;
struct net_device *netdev;
@@ -1124,7 +1124,7 @@ err:
return -ENOENT;
}
-static int __exit octeon_mgmt_remove(struct platform_device *pdev)
+static int __devexit octeon_mgmt_remove(struct platform_device *pdev)
{
struct net_device *netdev = dev_get_drvdata(&pdev->dev);
@@ -1139,7 +1139,7 @@ static struct platform_driver octeon_mgmt_driver = {
.owner = THIS_MODULE,
},
.probe = octeon_mgmt_probe,
- .remove = __exit_p(octeon_mgmt_remove),
+ .remove = __devexit_p(octeon_mgmt_remove),
};
extern void octeon_mdiobus_force_mod_depencency(void);
--
1.6.6.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] netdev: mdio-octeon: Fix section mismatch errors.
2010-06-24 19:14 [PATCH 0/2] Fix some section mismatch errors for Octeon network drivers David Daney
2010-06-24 19:14 ` [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors David Daney
@ 2010-06-24 19:14 ` David Daney
2010-06-29 7:00 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: David Daney @ 2010-06-24 19:14 UTC (permalink / raw)
To: netdev; +Cc: linux-mips, David Daney
We started getting:
WARNING: vmlinux.o(.data+0x20bd0): Section mismatch in reference from
the variable octeon_mdiobus_driver to the function
.init.text:octeon_mdiobus_probe()
This fixes it.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
drivers/net/phy/mdio-octeon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c
index f443d43..bd12ba9 100644
--- a/drivers/net/phy/mdio-octeon.c
+++ b/drivers/net/phy/mdio-octeon.c
@@ -85,7 +85,7 @@ static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id,
return 0;
}
-static int __init octeon_mdiobus_probe(struct platform_device *pdev)
+static int __devinit octeon_mdiobus_probe(struct platform_device *pdev)
{
struct octeon_mdiobus *bus;
union cvmx_smix_en smi_en;
@@ -143,7 +143,7 @@ err:
return err;
}
-static int __exit octeon_mdiobus_remove(struct platform_device *pdev)
+static int __devexit octeon_mdiobus_remove(struct platform_device *pdev)
{
struct octeon_mdiobus *bus;
union cvmx_smix_en smi_en;
@@ -163,7 +163,7 @@ static struct platform_driver octeon_mdiobus_driver = {
.owner = THIS_MODULE,
},
.probe = octeon_mdiobus_probe,
- .remove = __exit_p(octeon_mdiobus_remove),
+ .remove = __devexit_p(octeon_mdiobus_remove),
};
void octeon_mdiobus_force_mod_depencency(void)
--
1.6.6.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors.
2010-06-24 19:14 ` [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors David Daney
@ 2010-06-29 7:00 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-06-29 7:00 UTC (permalink / raw)
To: ddaney; +Cc: netdev, linux-mips
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 24 Jun 2010 12:14:47 -0700
> We started getting:
>
> WARNING: drivers/net/built-in.o(.data+0x10f0): Section mismatch in
> reference from the variable octeon_mgmt_driver to the function
> .init.text:octeon_mgmt_probe()
>
> This fixes it.
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Applied to net-next-2.6
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] netdev: mdio-octeon: Fix section mismatch errors.
2010-06-24 19:14 ` [PATCH 2/2] netdev: mdio-octeon: " David Daney
@ 2010-06-29 7:00 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-06-29 7:00 UTC (permalink / raw)
To: ddaney; +Cc: netdev, linux-mips
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 24 Jun 2010 12:14:48 -0700
> We started getting:
>
> WARNING: vmlinux.o(.data+0x20bd0): Section mismatch in reference from
> the variable octeon_mdiobus_driver to the function
> .init.text:octeon_mdiobus_probe()
>
> This fixes it.
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Applied to net-next-2.6
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-06-29 7:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 19:14 [PATCH 0/2] Fix some section mismatch errors for Octeon network drivers David Daney
2010-06-24 19:14 ` [PATCH 1/2] netdev: octeon_mgmt: Fix section mismatch errors David Daney
2010-06-29 7:00 ` David Miller
2010-06-24 19:14 ` [PATCH 2/2] netdev: mdio-octeon: " David Daney
2010-06-29 7:00 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).