Skip to content

Commit b0706ca

Browse files
dhowellsTrond Myklebust
authored andcommitted
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>
1 parent 0aa0588 commit b0706ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/nfs/sysctl.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515

1616
#include "callback.h"
1717

18+
#ifdef CONFIG_NFS_V4
1819
static const int nfs_set_port_min = 0;
1920
static const int nfs_set_port_max = 65535;
21+
#endif
2022
static struct ctl_table_header *nfs_callback_sysctl_table;
2123

2224
static ctl_table nfs_cb_sysctls[] = {

0 commit comments

Comments
 (0)