diff options
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 0c8d7c048615..e38f5a073d01 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -334,6 +334,11 @@ EXPORT_SYMBOL_GPL(ktime_add_safe); | |||
334 | 334 | ||
335 | static struct debug_obj_descr hrtimer_debug_descr; | 335 | static struct debug_obj_descr hrtimer_debug_descr; |
336 | 336 | ||
337 | static void *hrtimer_debug_hint(void *addr) | ||
338 | { | ||
339 | return ((struct hrtimer *) addr)->function; | ||
340 | } | ||
341 | |||
337 | /* | 342 | /* |
338 | * fixup_init is called when: | 343 | * fixup_init is called when: |
339 | * - an active object is initialized | 344 | * - an active object is initialized |
@@ -393,6 +398,7 @@ static int hrtimer_fixup_free(void *addr, enum debug_obj_state state) | |||
393 | 398 | ||
394 | static struct debug_obj_descr hrtimer_debug_descr = { | 399 | static struct debug_obj_descr hrtimer_debug_descr = { |
395 | .name = "hrtimer", | 400 | .name = "hrtimer", |
401 | .debug_hint = hrtimer_debug_hint, | ||
396 | .fixup_init = hrtimer_fixup_init, | 402 | .fixup_init = hrtimer_fixup_init, |
397 | .fixup_activate = hrtimer_fixup_activate, | 403 | .fixup_activate = hrtimer_fixup_activate, |
398 | .fixup_free = hrtimer_fixup_free, | 404 | .fixup_free = hrtimer_fixup_free, |