drivers: block: Move prototype declaration of function tl_abort_disk_io() to appropri...
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 19 Dec 2013 09:45:02 +0000 (15:15 +0530)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:19:38 +0000 (16:19 +0100)
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>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_state.c

index 0e06f0c5dd1e60d8d4a4656160f23ed0d6f4cde1..66239fa34f12164ecb84d7326ba975fb7b9421fb 100644 (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;
index 216d47b7e88b72f59e26ede29a758116adc2f687..120e1c0ea6ac4443943ccede852609bc9b3f6888 100644 (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;