[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:
committed by
Linus Torvalds
parent
e7374e4800
commit
266bee8869
@@ -1132,7 +1132,7 @@ static int __init nfs_init_inodecache(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit nfs_destroy_inodecache(void)
|
||||
static void nfs_destroy_inodecache(void)
|
||||
{
|
||||
if (kmem_cache_destroy(nfs_inode_cachep))
|
||||
printk(KERN_INFO "nfs_inode_cache: not all structures were freed\n");
|
||||
|
Reference in New Issue
Block a user