Skip to content

Commit

Permalink
[ATM]: Compile error on ARM
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Kevin Hilman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Kevin Hilman authored and David S. Miller committed Aug 17, 2006
1 parent 932f377 commit b9c6e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/atm/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ int __init atm_proc_init(void)
goto out;
}

void __exit atm_proc_exit(void)
void atm_proc_exit(void)
{
atm_proc_dirs_remove();
}

0 comments on commit b9c6e3e

Please sign in to comment.