Commit de0b2e69 authored by Rashika Kheria's avatar Rashika Kheria Committed by Philipp Reisner

drivers: block: Move prototype declaration to appropriate header file from drbd_main.c

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
parent f63e631a
...@@ -588,6 +588,10 @@ struct drbd_epoch { ...@@ -588,6 +588,10 @@ struct drbd_epoch {
unsigned long flags; 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 */ /* drbd_epoch flag bits */
enum { enum {
DE_HAVE_BARRIER_NUMBER, DE_HAVE_BARRIER_NUMBER,
......
...@@ -57,9 +57,7 @@ ...@@ -57,9 +57,7 @@
#include "drbd_vli.h" #include "drbd_vli.h"
static DEFINE_MUTEX(drbd_main_mutex); static DEFINE_MUTEX(drbd_main_mutex);
int drbdd_init(struct drbd_thread *);
int drbd_worker(struct drbd_thread *); int drbd_worker(struct drbd_thread *);
int drbd_asender(struct drbd_thread *);
int drbd_init(void); int drbd_init(void);
static int drbd_open(struct block_device *bdev, fmode_t mode); static int drbd_open(struct block_device *bdev, fmode_t mode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment