drivers: md: Mark the function btree_insert_fn() as static in btree.c
Subsystems (2)
PATCH 1/1 drivers: md: Mark the function btree_insert_fn() as static in btree.c
This patch marks the function btree_insert_fn() as static in bcache/btree.c because it is not used outside this file.
Thus, it also eliminates the following warning in bcache/btree.c:drivers/md/bcache/btree.c:2220:5: warning: no previous prototype for ‘btree_insert_fn’ [-Wmissing-prototypes]
Signed-off-by Rashika Kheria <[email protected]>
--- drivers/md/bcache/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/btree.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5
Quoted 7 lines · Rashika Kheria
This patch marks the function
btree_insert_fn()as static inbcache/btree.cbecause it is not used outside this file.Thus, it also eliminates the following warning in
bcache/btree.c:drivers/md/bcache/btree.c:2220:5: warning: no previous prototype for ‘btree_insert_fn’ [-Wmissing-prototypes]Signed-off-by Rashika Kheria <[email protected]>
Reviewed-by Josh Triplett <[email protected]>
Quoted 19 lines
drivers/md/bcache/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/md/bcache/btree.c +1
-1@@ -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);Signature · 1 line
1.7.9.5