Skip to content

Commit

Permalink
NFS: Avoid warnings when CONFIG_NFS_V4=n
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Trond Myklebust committed Jan 26, 2010
1 parent 0aa0588 commit b0706ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfs/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

#include "callback.h"

#ifdef CONFIG_NFS_V4
static const int nfs_set_port_min = 0;
static const int nfs_set_port_max = 65535;
#endif
static struct ctl_table_header *nfs_callback_sysctl_table;

static ctl_table nfs_cb_sysctls[] = {
Expand Down

0 comments on commit b0706ca

Please sign in to comment.