diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-12-29 16:38:51 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-12-31 11:25:16 -0500 |
commit | 0ad30ff67bd3e82da8c1dc4d74b88aca846dbbd9 (patch) | |
tree | 62cc84a0ce48136053b8e19050e0a3678d21a634 /fs/nfs/callback.c | |
parent | 91bd2ffa9030191ad077e43be37c5bfc53640dc2 (diff) | |
download | linux-0ad30ff67bd3e82da8c1dc4d74b88aca846dbbd9.tar.bz2 |
nfs: fixed broken compilation in nfs_callback_up_net()
Patch fixes compilation error in nfs_callback_up_net()
serv->sv_bc_enabled is defined under enabled CONFIG_SUNRPC_BACKCHANNEL,
however nfs_callback_up_net() can access it even if this config option
was not set.
Fixes: a289ce5311f4 (sunrpc: replace svc_serv->sv_bc_xprt by boolean flag)
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r-- | fs/nfs/callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 82fa65da741b..0b602a39dd71 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c @@ -210,7 +210,7 @@ static int nfs_callback_up_net(int minorversion, struct svc_serv *serv, if (!IS_ENABLED(CONFIG_NFS_V4_1) || minorversion == 0) ret = nfs4_callback_up_net(serv, net); else if (xprt->ops->bc_setup) - serv->sv_bc_enabled = true; + set_bc_enabled(serv); else ret = -EPROTONOSUPPORT; |