Messages in this thread Patch in this message | | | Date | Fri, 12 Nov 1999 11:25:56 -0600 (CST) | From | Thomas Molina <> | Subject | problem with /drivers/net/setup.c in 2.3.27 |
| |
During the attempt to compile subject file (apparently new in 2.3.27) I ran into undefined symbols. There are a number of code segments which look like this:
#ifdef CONFIG_DUMMY { extern int dummy_init(struct net_device *dev); static struct net_device dummy_dev = { "dummy" __PAD5, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, dummy_init, }; register_netdev(&sb1000_dev); } #endif
EVERY code segment attempts to call register_netdev with the same parameter (sb1000_dev). Does the enclosed patch look reasonable?
--- setup.c.old Fri Nov 12 11:13:19 1999 +++ setup.c Fri Nov 12 11:15:48 1999 @@ -309,7 +309,7 @@ static struct net_device dummy_dev = { "dummy" __PAD5, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, dummy_init, }; - register_netdev(&sb1000_dev); + register_netdev(&dummy_dev); } #endif #ifdef CONFIG_EQUALIZER @@ -325,7 +325,7 @@ NULL, /* next device */ eql_init /* set up the rest */ }; - register_netdev(&sb1000_dev); + register_netdev(&eql_dev); } #endif #ifdef CONFIG_APBIF @@ -335,7 +335,7 @@ { "bif" __PAD3, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, bif_init }; - register_netdev(&sb1000_dev); + register_netdev(&bif_dev); } #endif #ifdef CONFIG_NET_SB1000
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |