Skip to contentSkip to conversation

Link error with linux-2.5 bk

DISCUSSION Andi Kleen 1 participant 1 message Jan 21, 2004

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

Forgot to set correct cc originally.

Begin forwarded message:

Date: Wed, 21 Jan 2004 18:20:19 +0100
From: Andi Kleen <[email protected]>
To: "Luck, Tony" <[email protected]>
Cc: [email protected], [email protected]
Subject: Re: Link error with linux-2.5 bk

Quoted 10 lines · Tony
Quoted 2 lines

LD .tmp_vmlinux1
local symbol 0: discarded in section `.exit.text' from drivers/built-in.o

My money is on this change to drivers/net/dummy.c (clipped from diff between bk3 and bk4 trees). "dummy_free_one()" is marked as __exit (so we'll try to discard it), but it is called by dummy_init_module().

Dropping the "__exit" will fix it (but there may be other fixes). Copying Andi Kleen, as according to BitKeeper he appears to be the author of this change.

Yep, the __exit is wrong. Thanks, Tony.

Jeff, can you apply this patch, please? It should fix compiling in of the dummy device.

Thanks.

-Andi

drivers/net/dummy.c renamed from drivers/net/dummy.c-o +1 -1
@@ -112,7 +112,7 @@
 	return err;
 }
 
-static void __exit dummy_free_one(int index) 
+static void dummy_free_one(int index) 
 {
 	unregister_netdev(dummies[index]);
 	free_netdev(dummies[index]);