summaryrefslogtreecommitdiffstats
path: root/fs/afs/Makefile
diff options
context:
space:
mode:
authorDavid Howells2018-06-05 11:54:24 +0200
committerAl Viro2018-06-15 06:52:55 +0200
commitb6cfbecafbd2ee9407844122c928ff5147747a86 (patch)
tree5f46e14845092c7b82544fd2e2f99a67b58048b4 /fs/afs/Makefile
parentproc: Make inline name size calculation automatic (diff)
downloadkernel-qcow2-linux-b6cfbecafbd2ee9407844122c928ff5147747a86.tar.gz
kernel-qcow2-linux-b6cfbecafbd2ee9407844122c928ff5147747a86.tar.xz
kernel-qcow2-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/Makefile')
-rw-r--r--fs/afs/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/Makefile b/fs/afs/Makefile
index 532acae25453..546874057bd3 100644
--- a/fs/afs/Makefile
+++ b/fs/afs/Makefile
@@ -5,7 +5,7 @@
afs-cache-$(CONFIG_AFS_FSCACHE) := cache.o
-kafs-objs := \
+kafs-y := \
$(afs-cache-y) \
addr_list.o \
callback.o \
@@ -21,7 +21,6 @@ kafs-objs := \
main.o \
misc.o \
mntpt.o \
- proc.o \
rotate.o \
rxrpc.o \
security.o \
@@ -34,4 +33,5 @@ kafs-objs := \
write.o \
xattr.o
+kafs-$(CONFIG_PROC_FS) += proc.o
obj-$(CONFIG_AFS_FS) := kafs.o