kasan, arm64: only use kasan_depth for software modes
[sfrench/cifs-2.6.git] / include / linux / sched.h
index 51d535b69bd6fce5253c09a7a6c01c9087c7f365..6e3a5eeec509a193b5f2f3d07348a68f188a6f18 100644 (file)
@@ -1234,7 +1234,7 @@ struct task_struct {
        u64                             timer_slack_ns;
        u64                             default_timer_slack_ns;
 
-#ifdef CONFIG_KASAN
+#if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)
        unsigned int                    kasan_depth;
 #endif