]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: block: Move prototype declaration to appropriate header file from drbd_main.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 19 Dec 2013 09:37:47 +0000 (15:07 +0530)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:19:39 +0000 (16:19 +0100)
Move prototype declaration of functions drbdd_init() and drbd_asender()
from drbd/drbd_main.c to header file drbd/drbd_int.h because these
functions are used by more than one file.

This eliminates the following warning in drbd/drbd_receiver.c:
drivers/block/drbd/drbd_receiver.c:4836:5: warning: no previous prototype for ‘drbdd_init’ [-Wmissing-prototypes]
drivers/block/drbd/drbd_receiver.c:5245:5: warning: no previous prototype for ‘drbd_asender’ [-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>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c

index 66239fa34f12164ecb84d7326ba975fb7b9421fb..27df55fb92ca21d5aa545f6357cf265e7a3f2594 100644 (file)
@@ -588,6 +588,10 @@ struct drbd_epoch {
        unsigned long flags;
 };
 
+/* Prototype declaration of function defined in drbd_receiver.c */
+int drbdd_init(struct drbd_thread *);
+int drbd_asender(struct drbd_thread *);
+
 /* drbd_epoch flag bits */
 enum {
        DE_HAVE_BARRIER_NUMBER,
index 139539a115f8528ee78486276603b3f72b1b6262..c0b8b2497bdddb0c2817257dbc759d2ca2b97af8 100644 (file)
@@ -57,9 +57,7 @@
 #include "drbd_vli.h"
 
 static DEFINE_MUTEX(drbd_main_mutex);
-int drbdd_init(struct drbd_thread *);
 int drbd_worker(struct drbd_thread *);
-int drbd_asender(struct drbd_thread *);
 
 int drbd_init(void);
 static int drbd_open(struct block_device *bdev, fmode_t mode);