]> 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)
commit097b380113ac9f0b0ef9361145dd6c4146b678fe
tree6d8902d88f504e15a7d3375790e2838acf7925d0
parenta197909b34b3b1882b5e272c813a7b51b238c6eb
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