]> git.baikalelectronics.ru Git - kernel.git/commit
block/floppy: Convert callback to pass timer_list
authorKees Cook <keescook@chromium.org>
Thu, 5 Oct 2017 00:49:29 +0000 (17:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Nov 2017 03:10:35 +0000 (20:10 -0700)
commit1c79f5727d222f0c83fc03ff61b4e7478e1cddb2
tree6d8902d88f504e15a7d3375790e2838acf7925d0
parentac3b43a763abad2d0293579db4d24c0419eb5980
block/floppy: Convert callback to pass timer_list

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to passing in the timer pointer explicitly.
Calculate the drive from the offset of the timer in the timer list.

Cc: Jiri Kosina <jikos@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Geliang Tang <geliangtang@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c