Commit 2e54b9b1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Anna Schumaker

pNFS/flexfiles: Make local symbol layoutreturn_ops static

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 045c5519
...@@ -2076,7 +2076,7 @@ ff_layout_free_layoutreturn(struct nfs4_xdr_opaque_data *args) ...@@ -2076,7 +2076,7 @@ ff_layout_free_layoutreturn(struct nfs4_xdr_opaque_data *args)
kfree(ff_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, .encode = ff_layout_encode_layoutreturn,
.free = ff_layout_free_layoutreturn, .free = ff_layout_free_layoutreturn,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment