summaryrefslogtreecommitdiff
path: root/fs/lockd/svclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/svclock.c')
-rw-r--r--fs/lockd/svclock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index 6063a8e4b9f3..c4a08e266b72 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -716,7 +716,9 @@ struct lock_manager_operations nlmsvc_lock_operations = {
static void
nlmsvc_grant_blocked(struct nlm_block *block)
{
+#ifdef CONFIG_FILE_LOCKING
struct nlm_file *file = block->b_file;
+#endif
struct nlm_lock *lock = &block->b_call->a_args.lock;
int error;