From 53efd89f412570171a30a9400e522b6be1eff996 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Fri, 14 May 2021 10:39:38 +1000 Subject: [PATCH] FROMGIT: fix for "printk: introduce dump_stack_lvl()" Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n. Link: https://lkml.kernel.org/r/YJ0KAM0hQev1AmWe@elver.google.com Signed-off-by: Marco Elver Reported-by: kernel test robot Reviewed-by: Alexander Potapenko Cc: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell Bug: 186674719 Test: Treehugger (cherry picked from commit 9c060e7a8a2b1853a5069809c7e9faecf6e7486b https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm) Signed-off-by: Alexander Potapenko Change-Id: Iea3529d356f4cd6c657659620f3ba5c134316a47 --- include/linux/printk.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/printk.h b/include/linux/printk.h index abe274305d79..f589b8b60806 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h @@ -270,6 +270,10 @@ static inline void show_regs_print_info(const char *log_lvl) { } +static inline void dump_stack_lvl(const char *log_lvl) +{ +} + static inline void dump_stack(void) { }