summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-28 10:31:35 +0800
committerKent Overstreet <kmo@daterainc.com>2013-11-28 17:05:58 -0800
commit08239ca2a053dbc3b082916bdfbd88e5a9ad9267 (patch)
tree3b72da15addfe9e9cfc2f766ab26a015c3672623 /drivers/md/bcache
parentc86949486d41d9e7d7681fc72923555114fd702f (diff)
downloadblackbird-op-linux-08239ca2a053dbc3b082916bdfbd88e5a9ad9267.tar.gz
blackbird-op-linux-08239ca2a053dbc3b082916bdfbd88e5a9ad9267.zip
bcache: fix sparse non static symbol warning
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>
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r--drivers/md/bcache/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index 5e2765aadce1..dc6e2be265b7 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -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);
OpenPOWER on IntegriCloud