test13-pre6 compile error..network.o
Subsystems (2)
Hello,
I received the following error while compiling test13-pre6 .
net/network.o: In function `lecd_attach':
net/network.o(.text+0x5ce78): undefined reference to prepare_trdev' net/network.o(.text+0x5ce88): undefined reference to prepare_etherdev' net/network.o(.text+0x5cee3): undefined reference to `publish_netdev'
make: *** [vmlinux] Error 1
Regards,
-Frank
Quoted 8 lines
Hello,
I received the following error while compiling test13-pre6 .
net/network.o: In function `lecd_attach':
net/network.o(.text+0x5ce78): undefined reference toprepare_trdev' net/network.o(.text+0x5ce88): undefined reference toprepare_etherdev' net/network.o(.text+0x5cee3): undefined reference to `publish_netdev'
make: *** [vmlinux] Error 1
This is caused by some cross-patch leakage between Alan and Linus.
This should fix it:
net/atm/lec.c +3 -4
@@ -772,10 +772,10 @@ size =sizeof (struct lec_priv );#ifdef CONFIG_TR if (is_trdev) - dev_lec[i] =prepare_trdev (NULL , size); + dev_lec[i] =init_trdev (NULL , size); else#endif - dev_lec[i] =prepare_etherdev (NULL , size); + dev_lec[i] =init_etherdev (NULL , size);if (!dev_lec[i])return -ENOMEM ;
@@ -783,7 +783,6 @@ priv->is_trdev = is_trdev;sprintf (dev_lec[i]->name,"lec%d" , i);lec_init (dev_lec[i]); -publish_netdev (dev_lec[i]); }else { priv = dev_lec[i]->priv;if (priv->lecd)
@@ -858,7 +857,7 @@for (i =0 ; i <MAX_LEC_ITF ; i++) {if (dev_lec[i] !=NULL ) { priv = (struct lec_priv *)dev_lec[i]->priv; -unregister_netdev (dev_lec[i]); +unregister_trdev (dev_lec[i]);kfree (dev_lec[i]); dev_lec[i] =NULL ; }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines
net/network.o(.text+0x5ce78): undefined reference to
prepare_trdev' net/network.o(.text+0x5ce88): undefined reference toprepare_etherdev' net/network.o(.text+0x5cee3): undefined reference to `publish_netdev'
My fault. I fed Linus a few things too many trying to get the networking stuff tidied up. Stuff leaked in from the networking core fixes that arent yet in Linus tree
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/