diff options
author | David Howells <dhowells@redhat.com> | 2018-06-05 11:54:24 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-15 06:52:55 +0200 |
commit | b6cfbecafbd2ee9407844122c928ff5147747a86 (patch) | |
tree | 5f46e14845092c7b82544fd2e2f99a67b58048b4 /fs/afs/internal.h | |
parent | proc: Make inline name size calculation automatic (diff) | |
download | linux-b6cfbecafbd2ee9407844122c928ff5147747a86.tar.xz linux-b6cfbecafbd2ee9407844122c928ff5147747a86.zip |
afs: Handle CONFIG_PROC_FS=n
The AFS filesystem depends at the moment on /proc for configuration and
also presents information that way - however, this causes a compilation
failure if procfs is disabled.
Fix it so that the procfs bits aren't compiled in if procfs is disabled.
This means that you can't configure the AFS filesystem directly, but it is
still usable provided that an up-to-date keyutils is installed to look up
cells by SRV or AFSDB DNS records.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index f0cd7ed42c1e..209e04ffa6c3 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -871,11 +871,19 @@ extern int afs_get_ipv4_interfaces(struct afs_net *, struct afs_interface *, /* * proc.c */ +#ifdef CONFIG_PROC_FS extern int __net_init afs_proc_init(struct afs_net *); extern void __net_exit afs_proc_cleanup(struct afs_net *); extern int afs_proc_cell_setup(struct afs_cell *); extern void afs_proc_cell_remove(struct afs_cell *); extern void afs_put_sysnames(struct afs_sysnames *); +#else +static inline int afs_proc_init(struct afs_net *net) { return 0; } +static inline void afs_proc_cleanup(struct afs_net *net) {} +static inline int afs_proc_cell_setup(struct afs_cell *cell) { return 0; } +static inline void afs_proc_cell_remove(struct afs_cell *cell) {} +static inline void afs_put_sysnames(struct afs_sysnames *sysnames) {} +#endif /* * rotate.c |