summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-11-13 17:24:44 +0000
committerMark Brown <broonie@kernel.org>2026-11-13 17:24:44 +0000
commitefe09d415c4a5a7dd90f3948143cc40518500f60 (patch)
tree396e7e088080789b6bfc7cf5bb6e54ba13ba6dbf /include/linux
parent20c7b0a95f653549c9c73c320efd91fdf31ba2a8 (diff)
parentfc3f5044f99ec1f232a15eca6e4772118164ad33 (diff)
downloadlinux-next-efe09d415c4a5a7dd90f3948143cc40518500f60.tar.gz
linux-next-efe09d415c4a5a7dd90f3948143cc40518500f60.zip
Merge branch 'next' of https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kcsan.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/kcsan.h b/include/linux/kcsan.h
index c07c71f5ba4f..c7e9d15dd7bd 100644
--- a/include/linux/kcsan.h
+++ b/include/linux/kcsan.h
@@ -13,6 +13,8 @@
#include <linux/kcsan-checks.h>
#include <linux/types.h>
+struct task_struct;
+
#ifdef CONFIG_KCSAN
/*
@@ -66,9 +68,17 @@ struct kcsan_ctx {
*/
void kcsan_init(void);
+/**
+ * kcsan_task_init - initialize KCSAN state of a new task
+ *
+ * @task: task to initialize; must have been copied from its parent already.
+ */
+void kcsan_task_init(struct task_struct *task);
+
#else /* CONFIG_KCSAN */
static inline void kcsan_init(void) { }
+static inline void kcsan_task_init(struct task_struct *task) { }
#endif /* CONFIG_KCSAN */