]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: test_objpool: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:38:59 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:32 +0000 (10:32 +0100)
commitb09dffdeb3691483fc8fbe58ff7787c964b56d5c
tree6d427e75a14aa7fa42759c07e09d1eed71e78240
parent53867760f50c2b5b6b16f1350135553dda88c461
lib: test_objpool: 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/edc46fbf290b280ebe67bb0d21599c4c30716b68.1738746821.git.namcao@linutronix.de
lib/test_objpool.c