bcache: fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 28 Nov 2013 02:31:35 +0000 (10:31 +0800)
committerKent Overstreet <kmo@daterainc.com>
Fri, 29 Nov 2013 01:05:58 +0000 (17:05 -0800)
Fixes the following sparse warning:

drivers/md/bcache/btree.c:2220:5: warning:
 symbol 'btree_insert_fn' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/btree.c

index 5e2765aadce174e9b7cffd479667a2c48bcf500f..dc6e2be265b793cf0f51b8138cf29ad0f45cb540 100644 (file)
@@ -2217,7 +2217,7 @@ struct btree_insert_op {
        struct bkey     *replace_key;
 };
 
-int btree_insert_fn(struct btree_op *b_op, struct btree *b)
+static int btree_insert_fn(struct btree_op *b_op, struct btree *b)
 {
        struct btree_insert_op *op = container_of(b_op,
                                        struct btree_insert_op, op);