diff --git a/include/linux/sched.h b/include/linux/sched.h
index 829b0697d19cca5ad59103aa1cb98894eb7c73fb..9030f3abd9691f0ea27ec0f92ec8fbb0c895df38 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1208,6 +1208,10 @@ struct task_struct {
 #endif
 #endif
 
+#if IS_ENABLED(CONFIG_KUNIT)
+	struct kunit			*kunit_test;
+#endif
+
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
 	/* Index of current stored address in ret_stack: */
 	int				curr_ret_stack;