The patch titled Subject: lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2 has been added to the -mm tree. Its filename is lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Imran Khan <imran.f.khan@xxxxxxxxxx> Subject: lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2 fix build error Link: https://lkml.kernel.org/r/20210915175321.3472770-4-imran.f.khan@xxxxxxxxxx Signed-off-by: Imran Khan <imran.f.khan@xxxxxxxxxx> Suggested-by: Vlastimil Babka <vbabka@xxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Andrey Konovalov <andreyknvl@xxxxxxxxx> Cc: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> Cc: Daniel Vetter <daniel@xxxxxxxx> Cc: David Airlie <airlied@xxxxxxxx> Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx> Cc: Maxime Ripard <mripard@xxxxxxxxxx> Cc: Thomas Zimmermann <tzimmermann@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/drm_mm.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/drm_mm.c~lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2 +++ a/drivers/gpu/drm/drm_mm.c @@ -131,7 +131,7 @@ static void show_leaks(struct drm_mm *mm continue; } - stack_depot_snprint(node->stack, buf, BUFSZ); + stack_depot_snprint(node->stack, buf, BUFSZ, 0); DRM_ERROR("node [%08llx + %08llx]: inserted at\n%s", node->start, node->size, buf); } --- a/drivers/gpu/drm/i915/intel_runtime_pm.c~lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2 +++ a/drivers/gpu/drm/i915/intel_runtime_pm.c @@ -193,7 +193,7 @@ __print_intel_runtime_pm_wakeref(struct rep = 1; while (i + 1 < dbg->count && dbg->owners[i + 1] == stack) rep++, i++; - stack_depot_print(stack, buf, PAGE_SIZE, 2); + stack_depot_snprint(stack, buf, PAGE_SIZE, 2); drm_printf(p, "Wakeref x%lu taken at:\n%s", rep, buf); } _ Patches currently in -mm which might be from imran.f.khan@xxxxxxxxxx are lib-stackdepot-check-stackdepot-handle-before-accessing-slabs.patch lib-stackdepot-add-helper-to-print-stack-entries.patch lib-stackdepot-add-helper-to-print-stack-entries-into-buffer.patch lib-stackdepot-add-helper-to-print-stack-entries-into-buffer-v2.patch