diff mbox series

fix for "printk: introduce dump_stack_lvl()"

Message ID YJ0KAM0hQev1AmWe@elver.google.com (mailing list archive)
State New, archived
Headers show
Series fix for "printk: introduce dump_stack_lvl()" | expand

Commit Message

Marco Elver May 13, 2021, 11:14 a.m. UTC
Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marco Elver <elver@google.com>
---
 include/linux/printk.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Alexander Potapenko May 13, 2021, 11:20 a.m. UTC | #1
On Thu, May 13, 2021 at 1:14 PM Marco Elver <elver@google.com> wrote:
>
> Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
diff mbox series

Patch

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)
 {
 }