aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 1b64d225f067..5ca7ce9ce754 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -318,6 +318,11 @@ static inline int __next_wq_cpu(int cpu, const struct cpumask *mask,
318 318
319static struct debug_obj_descr work_debug_descr; 319static struct debug_obj_descr work_debug_descr;
320 320
321static void *work_debug_hint(void *addr)
322{
323 return ((struct work_struct *) addr)->func;
324}
325
321/* 326/*
322 * fixup_init is called when: 327 * fixup_init is called when:
323 * - an active object is initialized 328 * - an active object is initialized
@@ -389,6 +394,7 @@ static int work_fixup_free(void *addr, enum debug_obj_state state)
389 394
390static struct debug_obj_descr work_debug_descr = { 395static struct debug_obj_descr work_debug_descr = {
391 .name = "work_struct", 396 .name = "work_struct",
397 .debug_hint = work_debug_hint,
392 .fixup_init = work_fixup_init, 398 .fixup_init = work_fixup_init,
393 .fixup_activate = work_fixup_activate, 399 .fixup_activate = work_fixup_activate,
394 .fixup_free = work_fixup_free, 400 .fixup_free = work_fixup_free,