]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitde0b2e69b6653bf9fc5dd68dbf35e92f44d7dbee
treebeedbfca739a1f719ef2629d47a692df84b7bde3
parentf63e631a34babb0ff0ee6feb6d968855470b67ac
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: 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