From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rashika Kheria Subject: [PATCH] drivers: md: Mark the function btree_insert_fn() as static in btree.c Date: Sat, 14 Dec 2013 18:29:29 +0530 Message-ID: <20131214125929.GA8200@rashika> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pb0-f54.google.com ([209.85.160.54]:59075 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753397Ab3LNM7h (ORCPT ); Sat, 14 Dec 2013 07:59:37 -0500 Content-Disposition: inline Sender: linux-bcache-owner@vger.kernel.org List-Id: linux-bcache@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: Kent Overstreet , Neil Brown , linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, josh@joshtriplett.org 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 =E2= =80=98btree_insert_fn=E2=80=99 [-Wmissing-prototypes] Signed-off-by: Rashika Kheria --- drivers/md/bcache/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index 5e2765a..dc6e2be 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; }; =20 -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 =3D container_of(b_op, struct btree_insert_op, op); --=20 1.7.9.5