mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Cc: David Howells <[email protected]>
This commit is contained in:
parent
181a51f6e0
commit
40f2b6ffe5
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue