diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-19 15:16:22 +0530 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:19:38 +0100 |
commit | 16f4e743c81cec1194a0bc4c03e31f19af7ec005 (patch) | |
tree | ea24071a9e21220e570c7d37e95250617f66d3b7 | |
parent | 6d0abeca3242a88cab8232e4acd7e2bf088f3bc2 (diff) | |
download | op-kernel-dev-16f4e743c81cec1194a0bc4c03e31f19af7ec005.zip op-kernel-dev-16f4e743c81cec1194a0bc4c03e31f19af7ec005.tar.gz |
drivers: block: Mark functions as static in drbd_main.c
Mark functions _drbd_send_uuids(), fill_bitmap_rle_bits() and
init_submitter() as static in drbd/drbd_main.c because they are
not used outside this file.
This eliminates the following warnings in drbd/drbd_main.c:
drivers/block/drbd/drbd_main.c:826:5: warning: no previous prototype for ‘_drbd_send_uuids’ [-Wmissing-prototypes]
drivers/block/drbd/drbd_main.c:1070:5: warning: no previous prototype for ‘fill_bitmap_rle_bits’ [-Wmissing-prototypes]
drivers/block/drbd/drbd_main.c:2592:5: warning: no previous prototype for ‘init_submitter’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 929468e..139539a 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -823,7 +823,7 @@ int drbd_send_protocol(struct drbd_tconn *tconn) return err; } -int _drbd_send_uuids(struct drbd_conf *mdev, u64 uuid_flags) +static int _drbd_send_uuids(struct drbd_conf *mdev, u64 uuid_flags) { struct drbd_socket *sock; struct p_uuids *p; @@ -1067,7 +1067,7 @@ static void dcbp_set_pad_bits(struct p_compressed_bm *p, int n) p->encoding = (p->encoding & (~0x7 << 4)) | (n << 4); } -int fill_bitmap_rle_bits(struct drbd_conf *mdev, +static int fill_bitmap_rle_bits(struct drbd_conf *mdev, struct p_compressed_bm *p, unsigned int size, struct bm_xfer_ctx *c) @@ -2592,7 +2592,7 @@ void conn_destroy(struct kref *kref) kfree(tconn); } -int init_submitter(struct drbd_conf *mdev) +static int init_submitter(struct drbd_conf *mdev) { /* opencoded create_singlethread_workqueue(), * to be able to say "drbd%d", ..., minor */ |