1
0
Fork 0

drivers: block: Move prototype declaration of function tl_abort_disk_io() to appropriate header file from drbd_state.c

Move the prototype declaration of function tl_abort_disk_io() from
drbd/drbd_state.c to appropriate header file drbd/drbd_int.h because it
is used by more than 2 files.

This eliminates the following warnings in drbd/drbd_main.c:
drivers/block/drbd/drbd_main.c:310:6: warning: no previous prototype for ‘tl_abort_disk_io’ [-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>
hifive-unleashed-5.1
Rashika Kheria 2013-12-19 15:15:02 +05:30 committed by Philipp Reisner
parent a99efafc26
commit ed54482b99
2 changed files with 1 additions and 3 deletions

View File

@ -65,6 +65,7 @@
extern unsigned int minor_count;
extern bool disable_sendpage;
extern bool allow_oos;
void tl_abort_disk_io(struct drbd_conf *mdev);
#ifdef CONFIG_DRBD_FAULT_INJECTION
extern int enable_faults;

View File

@ -29,9 +29,6 @@
#include "drbd_int.h"
#include "drbd_req.h"
/* in drbd_main.c */
extern void tl_abort_disk_io(struct drbd_conf *mdev);
struct after_state_chg_work {
struct drbd_work w;
union drbd_state os;