diff mbox series

[mm] fix for "kasan: print basic stack frame info for SW_TAGS"

Message ID d7598f11a34ed96e508f7640fa038662ed2305ec.1647099922.git.andreyknvl@google.com (mailing list archive)
State New
Headers show
Series [mm] fix for "kasan: print basic stack frame info for SW_TAGS" | expand

Commit Message

andrey.konovalov@linux.dev March 12, 2022, 3:45 p.m. UTC
From: Andrey Konovalov <andreyknvl@google.com>

Using object_is_on_stack() requires linux/sched/task_stack.h.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
---
 mm/kasan/report_sw_tags.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/mm/kasan/report_sw_tags.c b/mm/kasan/report_sw_tags.c
index 68724ba3d814..7a26397297ed 100644
--- a/mm/kasan/report_sw_tags.c
+++ b/mm/kasan/report_sw_tags.c
@@ -16,6 +16,7 @@ 
 #include <linux/mm.h>
 #include <linux/printk.h>
 #include <linux/sched.h>
+#include <linux/sched/task_stack.h>
 #include <linux/slab.h>
 #include <linux/stackdepot.h>
 #include <linux/stacktrace.h>