]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
null_blk: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:14 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:34 +0000 (10:32 +0100)
commit68d3de7fc49c326205811a23d0a146feed0d4fee
tree04cfd2016126d16c1ba9c72197b0ae54efd41629
parent4279d7054c871ed5e3d5de2b5948b24abba76c55
null_blk: Switch to use hrtimer_setup()

hrtimer_setup() takes the callback function pointer as argument and
initializes the timer completely.

Replace hrtimer_init() and the open coded initialization of
hrtimer::function with the new setup mechanism.

Patch was created by using Coccinelle.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/076cd30acb4b2d6b699f3c80463a8983530d4f06.1738746821.git.namcao@linutronix.de
drivers/block/null_blk/main.c