NFSD: Fix sparse warning in nfssvc.c
authorChuck Lever <chuck.lever@oracle.com>
Fri, 18 Dec 2020 17:28:23 +0000 (12:28 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 18 Dec 2020 17:28:23 +0000 (12:28 -0500)
commitd6c9e4368cc6a61bf25c9c72437ced509c854563
tree1e2fe82e5812b9cfcca07452bdcebaf53a79b869
parentb68f0cbd3f95f2df81e525c310a41fc73c2ed0d3
NFSD: Fix sparse warning in nfssvc.c

fs/nfsd/nfssvc.c:36:6: warning: symbol 'inter_copy_offload_enable' was not declared. Should it be static?

The parameter was added by commit ce0887ac96d3 ("NFSD add nfs4 inter
ssc to nfsd4_copy"). Relocate it into the source file that uses it,
and make it static. This approach is similar to the
nfs4_disable_idmapping, cltrack_prog, and cltrack_legacy_disable
module parameters.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfssvc.c
fs/nfsd/xdr4.h