fix for "printk: introduce dump_stack_lvl()"
diff mbox series

Message ID YJ0KAM0hQev1AmWe@elver.google.com
State In Next
Commit 9c060e7a8a2b1853a5069809c7e9faecf6e7486b
Headers show
Series
  • fix for "printk: introduce dump_stack_lvl()"
Related show

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>

Patch
diff mbox series

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