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

- From: Wei Yongjun \<hidden\>
- Date: 2014-01-09 14:21:19 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2014/01/6626592
- Thread: https://ratatoskr.run/linux-bcache/2014/01/6626592/t.md

```text
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;
```
