[PATCH] fix for "printk: introduce dump_stack_lvl()"

From: Marco Elver
Date: Thu May 13 2021 - 07:14:20 EST


Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Marco Elver <elver@xxxxxxxxxx>
---
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)
{
}
--
2.31.1.607.g51e8a6a459-goog