lkml.org 
[lkml]   [2022]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH mm] fix for "kasan: print basic stack frame info for SW_TAGS"
Date
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
\
 
 \ /
  Last update: 2022-03-12 16:46    [W:0.035 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site