Skip to contentSkip to conversation

fix section mismatch in fec.c

PATCH Superseded Steven King 2 participants 2 messages Oct 18, 2009 – Oct 19, 2009

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix section mismatch in fec.c

fec_enet_init is called by both fec_probe and fec_resume, so it shouldn't be marked as __init.

drivers/net/fec.c +2 -1
index 2923438..e8218a3 100644
@@ -1654,7 +1654,8 @@ static const struct net_device_ops fec_netdev_ops = {
   *
   * index is only used in legacy code
   */
-int __init fec_enet_init(struct net_device *dev, int index)
+static int
+fec_enet_init(struct net_device *dev, int index)
 {
 	struct fec_enet_private *fep = netdev_priv(dev);
 	struct bufdesc *cbd_base;
Signature · 1 line
Steven King -- sfking at fdwdc dot com
maintainer
#1 lore raw

From: Steven King <[email protected]>
Date: Sun, 18 Oct 2009 15:25:48 -0700

drivers/net/fec.c static const struct net_device_ops fec_netdev_ops = { · line 1659

Quoted 5 lines
   */
drivers/net/fec.c +2 -1
-int __init fec_enet_init(struct net_device *dev, int index)
+static int
+fec_enet_init(struct net_device *dev, int index)
 {

Don't change coding style when fixing a bug.

Fix this up and resubmit your fix, thanks.