Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd4dc82d authored by Randy Dunlap's avatar Randy Dunlap Committed by J. Bruce Fields
Browse files

lockd: fix FILE_LOCKING=n build error



lockd/svclock.c is missing a header file <linux/fs.h>.

<linux/fs.h> is missing a definition of locks_release_private()
for the config case of FILE_LOCKING=n, causing a build error:

fs/lockd/svclock.c:330: error: implicit declaration of function 'locks_release_private'

lockd without FILE_LOCKING doesn't make sense, so make LOCKD and LOCKD_V4
depend on FILE_LOCKING, and make NFS depend on FILE_LOCKING.

Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 02cb2858
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -226,10 +226,12 @@ source "fs/nfsd/Kconfig"

config LOCKD
	tristate
	depends on FILE_LOCKING

config LOCKD_V4
	bool
	depends on NFSD_V3 || NFS_V3
	depends on FILE_LOCKING
	default y

config EXPORTFS
+1 −1
Original line number Diff line number Diff line
config NFS_FS
	tristate "NFS client support"
	depends on INET
	depends on INET && FILE_LOCKING
	select LOCKD
	select SUNRPC
	select NFS_ACL_SUPPORT if NFS_V3_ACL