projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045c551
)
pNFS/flexfiles: Make local symbol layoutreturn_ops static
author
Wei Yongjun
<
[email protected]
>
Thu, 12 Jan 2017 15:38:06 +0000
(15:38 +0000)
committer
Anna Schumaker
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Anna Schumaker <
[email protected]
>
fs/nfs/flexfilelayout/flexfilelayout.c
patch
|
blob
|
history
diff --git
a/fs/nfs/flexfilelayout/flexfilelayout.c
b/fs/nfs/flexfilelayout/flexfilelayout.c
index cc9064974104503babf5a9df79563d95cf24b50e..6104696325be51725a161f86ff0a957578c09d0b 100644
(file)
--- 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)
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,
};