summaryrefslogtreecommitdiffstats
path: root/fs/coda/coda_int.h
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2019-07-17 01:29:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-17 04:23:23 +0200
commit6975259ae30e05068e87ab35dfc4caefb47cffe2 (patch)
treef2ed7253d49baddaca4feae0ca907d37a1366d16 /fs/coda/coda_int.h
parentcoda: add __init to init_coda_psdev() (diff)
downloadlinux-6975259ae30e05068e87ab35dfc4caefb47cffe2.tar.xz
linux-6975259ae30e05068e87ab35dfc4caefb47cffe2.zip
coda: remove sysctl object from module when unused
Inspired by NFS sysctl process Link: http://lkml.kernel.org/r/9afcc2cd09490849b309786bbf47fef75de7f91c.1558117389.git.jaharkes@cs.cmu.edu Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Colin Ian King <colin.king@canonical.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: David Howells <dhowells@redhat.com> Cc: Mikko Rapeli <mikko.rapeli@iki.fi> Cc: Sam Protsenko <semen.protsenko@linaro.org> Cc: Yann Droneaud <ydroneaud@opteya.com> Cc: Zhouyang Jia <jiazhouyang09@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda/coda_int.h')
-rw-r--r--fs/coda/coda_int.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/coda/coda_int.h b/fs/coda/coda_int.h
index bb0b3e0ed6c2..f82b59c9dd28 100644
--- a/fs/coda/coda_int.h
+++ b/fs/coda/coda_int.h
@@ -13,9 +13,19 @@ extern int coda_fake_statfs;
void coda_destroy_inodecache(void);
int __init coda_init_inodecache(void);
int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync);
+
+#ifdef CONFIG_SYSCTL
void coda_sysctl_init(void);
void coda_sysctl_clean(void);
+#else
+static inline void coda_sysctl_init(void)
+{
+}
+static inline void coda_sysctl_clean(void)
+{
+}
+#endif
#endif /* _CODA_INT_ */