From 40f2b6ffe525e975203c1621d4d4abaa7689b674 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Sat, 24 Jul 2010 11:10:09 +0200 Subject: fscache: fix build on !CONFIG_SYSCTL Commit 8b8edefa (fscache: convert object to use workqueue instead of slow-work) made fscache_exit() call unregister_sysctl_table() unconditionally breaking build when sysctl is disabled. Fix it by putting it inside CONFIG_SYSCTL. Signed-off-by: Tejun Heo Reported-by: Randy Dunlap Cc: David Howells --- fs/fscache/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/fscache') diff --git a/fs/fscache/main.c b/fs/fscache/main.c index 500936d9fff2..f9d856773f79 100644 --- a/fs/fscache/main.c +++ b/fs/fscache/main.c @@ -186,7 +186,9 @@ static void __exit fscache_exit(void) kobject_put(fscache_root); kmem_cache_destroy(fscache_cookie_jar); +#ifdef CONFIG_SYSCTL unregister_sysctl_table(fscache_sysctl_header); +#endif fscache_proc_cleanup(); destroy_workqueue(fscache_op_wq); destroy_workqueue(fscache_object_wq); -- cgit v1.2.3-70-g09d2