diff options
Diffstat (limited to 'net/sunrpc/sunrpc_syms.c')
-rw-r--r-- | net/sunrpc/sunrpc_syms.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index 9f7373203592..40401196e7de 100644 --- a/net/sunrpc/sunrpc_syms.c +++ b/net/sunrpc/sunrpc_syms.c | |||
@@ -142,6 +142,7 @@ EXPORT_SYMBOL(nlm_debug); | |||
142 | 142 | ||
143 | extern int register_rpc_pipefs(void); | 143 | extern int register_rpc_pipefs(void); |
144 | extern void unregister_rpc_pipefs(void); | 144 | extern void unregister_rpc_pipefs(void); |
145 | extern struct cache_detail ip_map_cache; | ||
145 | 146 | ||
146 | static int __init | 147 | static int __init |
147 | init_sunrpc(void) | 148 | init_sunrpc(void) |
@@ -158,7 +159,6 @@ init_sunrpc(void) | |||
158 | #ifdef CONFIG_PROC_FS | 159 | #ifdef CONFIG_PROC_FS |
159 | rpc_proc_init(); | 160 | rpc_proc_init(); |
160 | #endif | 161 | #endif |
161 | cache_register(&auth_domain_cache); | ||
162 | cache_register(&ip_map_cache); | 162 | cache_register(&ip_map_cache); |
163 | out: | 163 | out: |
164 | return err; | 164 | return err; |
@@ -169,8 +169,6 @@ cleanup_sunrpc(void) | |||
169 | { | 169 | { |
170 | unregister_rpc_pipefs(); | 170 | unregister_rpc_pipefs(); |
171 | rpc_destroy_mempool(); | 171 | rpc_destroy_mempool(); |
172 | if (cache_unregister(&auth_domain_cache)) | ||
173 | printk(KERN_ERR "sunrpc: failed to unregister auth_domain cache\n"); | ||
174 | if (cache_unregister(&ip_map_cache)) | 172 | if (cache_unregister(&ip_map_cache)) |
175 | printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n"); | 173 | printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n"); |
176 | #ifdef RPC_DEBUG | 174 | #ifdef RPC_DEBUG |