Commit b0706ca415b188ed58788420de4d5c9972b2afb2

Authored by David Howells
Committed by Trond Myklebust
1 parent 0aa05887af

NFS: Avoid warnings when CONFIG_NFS_V4=n

Avoid the following warnings when CONFIG_NFS_V4=n:

	fs/nfs/sysctl.c:19: warning: unused variable `nfs_set_port_max'
	fs/nfs/sysctl.c:18: warning: unused variable `nfs_set_port_min'

by making those variables contingent on NFSv4 being configured.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -15,8 +15,10 @@
15 15  
16 16 #include "callback.h"
17 17  
  18 +#ifdef CONFIG_NFS_V4
18 19 static const int nfs_set_port_min = 0;
19 20 static const int nfs_set_port_max = 65535;
  21 +#endif
20 22 static struct ctl_table_header *nfs_callback_sysctl_table;
21 23  
22 24 static ctl_table nfs_cb_sysctls[] = {