[PATCH -next] bcache: Fix sparse non static symbol warning

From
Wei Yongjun <hidden>
Date
2014-01-09 14:21:19
Also in
linux-bcache
From: Wei Yongjun <redacted>

Fixes the following sparse warning:

drivers/md/bcache/sysfs.c:419:5: warning:
 symbol 'bch_bset_print_stats' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <redacted>
---
 drivers/md/bcache/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index c6ab693..d8458d4 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -416,7 +416,7 @@ static int btree_bset_stats(struct btree_op *b_op, struct btree *b)
 	return MAP_CONTINUE;
 }
 
-int bch_bset_print_stats(struct cache_set *c, char *buf)
+static int bch_bset_print_stats(struct cache_set *c, char *buf)
 {
 	struct bset_stats_op op;
 	int ret;
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help