]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pNFS/flexfiles: Make local symbol layoutreturn_ops static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 15:38:06 +0000 (15:38 +0000)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Jan 2017 18:14:51 +0000 (13:14 -0500)
Fixes the following sparse warning:

fs/nfs/flexfilelayout/flexfilelayout.c:2114:34: warning:
 symbol 'layoutreturn_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c

index cc9064974104503babf5a9df79563d95cf24b50e..6104696325be51725a161f86ff0a957578c09d0b 100644 (file)
@@ -2076,7 +2076,7 @@ ff_layout_free_layoutreturn(struct nfs4_xdr_opaque_data *args)
        kfree(ff_args);
 }
 
-const struct nfs4_xdr_opaque_ops layoutreturn_ops = {
+static const struct nfs4_xdr_opaque_ops layoutreturn_ops = {
        .encode = ff_layout_encode_layoutreturn,
        .free = ff_layout_free_layoutreturn,
 };