[PATCH] fix static linking of NFS

Builds on ARM report link problems with common configurations like
statically linked NFS (for nfsroot).  The symptom is that __init
section code references __exit section code; that won't work since
the exit sections are discarded (since they can never be called).

The best fix for these particular cases would be an "__init_or_exit"
section annotation.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
David Brownell
2006-06-27 12:59:15 -07:00
committed by Linus Torvalds
parent e7374e4800
commit 266bee8869
6 changed files with 9 additions and 9 deletions

View File

@@ -1551,7 +1551,7 @@ int __init nfs_init_writepagecache(void)
return 0;
}
void __exit nfs_destroy_writepagecache(void)
void nfs_destroy_writepagecache(void)
{
mempool_destroy(nfs_commit_mempool);
mempool_destroy(nfs_wdata_mempool);