Skip to contentSkip to conversation

net/atm compile error on ARM

PATCH In review Kevin Hilman 2 participants 2 messages Aug 14, 2006 – Aug 15, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/atm compile error on ARM

atm_proc_exit() is declared as __exit, and thus in .exit.text. On some architectures (ARM) .exit.text is discarded at compile time, and since atm_proc_exit() is called by some other __init functions, it results in a link error.

net/atm/proc.c +1 -1
Index: ixp4xx/net/atm/proc.c
===================================================================
@@ -507,7 +507,7 @@ err_out:
 	goto out;
 }
 
-void __exit atm_proc_exit(void)
+void atm_proc_exit(void)
 {
 	atm_proc_dirs_remove();
 }
maintainer
#1 lore raw

From: Kevin Hilman <[email protected]>
Date: Mon, 14 Aug 2006 12:28:09 -0700

Quoted 6 lines

atm_proc_exit() is declared as __exit, and thus in .exit.text. On some architectures (ARM) .exit.text is discarded at compile time, and since atm_proc_exit() is called by some other __init functions, it results in a link error.

Patch applied, thanks Kevin.