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

andrey.konovalov@linux.dev posted 1 patch 4 years, 3 months ago
mm/kasan/report_sw_tags.c | 1 +
1 file changed, 1 insertion(+)
[PATCH mm] fix for "kasan: print basic stack frame info for SW_TAGS"
Posted by andrey.konovalov@linux.dev 4 years, 3 months ago
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 --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>
-- 
2.25.1