aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kcsan.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2020-03-31 21:32:32 +0200
committerPaul E. McKenney <paulmck@kernel.org>2020-04-13 17:18:14 -0700
commit01b4ff58f72dbee926077d9afa0650f6e685e866 (patch)
tree9511655aab9c348cebd0a4dc5078d3688c237fcb /include/linux/kcsan.h
parentkcsan: Introduce scoped ASSERT_EXCLUSIVE macros (diff)
downloadwireguard-linux-01b4ff58f72dbee926077d9afa0650f6e685e866.tar.xz
wireguard-linux-01b4ff58f72dbee926077d9afa0650f6e685e866.zip
kcsan: Move kcsan_{disable,enable}_current() to kcsan-checks.h
Both affect access checks, and should therefore be in kcsan-checks.h. This is in preparation to use these in compiler.h. Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/kcsan.h')
-rw-r--r--include/linux/kcsan.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/kcsan.h b/include/linux/kcsan.h
index 17ae59e4b685..53340d8789f9 100644
--- a/include/linux/kcsan.h
+++ b/include/linux/kcsan.h
@@ -50,25 +50,9 @@ struct kcsan_ctx {
*/
void kcsan_init(void);
-/**
- * kcsan_disable_current - disable KCSAN for the current context
- *
- * Supports nesting.
- */
-void kcsan_disable_current(void);
-
-/**
- * kcsan_enable_current - re-enable KCSAN for the current context
- *
- * Supports nesting.
- */
-void kcsan_enable_current(void);
-
#else /* CONFIG_KCSAN */
static inline void kcsan_init(void) { }
-static inline void kcsan_disable_current(void) { }
-static inline void kcsan_enable_current(void) { }
#endif /* CONFIG_KCSAN */