diff options
author | David Brownell <david-b@pacbell.net> | 2006-06-27 15:59:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 17:07:19 -0400 |
commit | 266bee88699ddbde42ab303bbc426a105cc49809 (patch) | |
tree | 2d2b57f869321e177caf173af8d43b5d88c4a79d /fs/nfs/internal.h | |
parent | e7374e48009a15a680d53bd1f9828b9b79a8aac9 (diff) |
[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>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index bd2815e2dec1..4fe51c1292bb 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -31,15 +31,15 @@ extern struct svc_version nfs4_callback_version1; | |||
31 | 31 | ||
32 | /* pagelist.c */ | 32 | /* pagelist.c */ |
33 | extern int __init nfs_init_nfspagecache(void); | 33 | extern int __init nfs_init_nfspagecache(void); |
34 | extern void __exit nfs_destroy_nfspagecache(void); | 34 | extern void nfs_destroy_nfspagecache(void); |
35 | extern int __init nfs_init_readpagecache(void); | 35 | extern int __init nfs_init_readpagecache(void); |
36 | extern void __exit nfs_destroy_readpagecache(void); | 36 | extern void nfs_destroy_readpagecache(void); |
37 | extern int __init nfs_init_writepagecache(void); | 37 | extern int __init nfs_init_writepagecache(void); |
38 | extern void __exit nfs_destroy_writepagecache(void); | 38 | extern void nfs_destroy_writepagecache(void); |
39 | 39 | ||
40 | #ifdef CONFIG_NFS_DIRECTIO | 40 | #ifdef CONFIG_NFS_DIRECTIO |
41 | extern int __init nfs_init_directcache(void); | 41 | extern int __init nfs_init_directcache(void); |
42 | extern void __exit nfs_destroy_directcache(void); | 42 | extern void nfs_destroy_directcache(void); |
43 | #else | 43 | #else |
44 | #define nfs_init_directcache() (0) | 44 | #define nfs_init_directcache() (0) |
45 | #define nfs_destroy_directcache() do {} while(0) | 45 | #define nfs_destroy_directcache() do {} while(0) |