diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-01-12 10:38:06 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-30 13:14:51 -0500 |
commit | 2e54b9b1b0ace6997aa4f9811af0811b2d8160f2 (patch) | |
tree | 63da8519bccaad1cf213e6c0f7f962ae267d45ea | |
parent | 045c551947a8c6e787437d696262b562520ff2f0 (diff) |
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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index cc9064974104..6104696325be 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c | |||
@@ -2076,7 +2076,7 @@ ff_layout_free_layoutreturn(struct nfs4_xdr_opaque_data *args) | |||
2076 | kfree(ff_args); | 2076 | kfree(ff_args); |
2077 | } | 2077 | } |
2078 | 2078 | ||
2079 | const struct nfs4_xdr_opaque_ops layoutreturn_ops = { | 2079 | static const struct nfs4_xdr_opaque_ops layoutreturn_ops = { |
2080 | .encode = ff_layout_encode_layoutreturn, | 2080 | .encode = ff_layout_encode_layoutreturn, |
2081 | .free = ff_layout_free_layoutreturn, | 2081 | .free = ff_layout_free_layoutreturn, |
2082 | }; | 2082 | }; |