aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kcsan/kcsan.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2021-03-03 10:38:45 +0100
committerPaul E. McKenney <paulmck@kernel.org>2021-03-08 14:27:43 -0800
commite36299efe7d749976fbdaaf756dee6ef32543c2c (patch)
treec92c7b27b9c35ea455a03ba99270caa65322b505 /kernel/kcsan/kcsan.h
parentLinux 5.12-rc2 (diff)
downloadlinux-dev-e36299efe7d749976fbdaaf756dee6ef32543c2c.tar.xz
linux-dev-e36299efe7d749976fbdaaf756dee6ef32543c2c.zip
kcsan, debugfs: Move debugfs file creation out of early init
Commit 56348560d495 ("debugfs: do not attempt to create a new file before the filesystem is initalized") forbids creating new debugfs files until debugfs is fully initialized. This means that KCSAN's debugfs file creation, which happened at the end of __init(), no longer works. And was apparently never supposed to work! However, there is no reason to create KCSAN's debugfs file so early. This commit therefore moves its creation to a late_initcall() callback. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Cc: stable <stable@vger.kernel.org> Fixes: 56348560d495 ("debugfs: do not attempt to create a new file before the filesystem is initalized") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/kcsan/kcsan.h')
-rw-r--r--kernel/kcsan/kcsan.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/kcsan/kcsan.h b/kernel/kcsan/kcsan.h
index 8d4bf3431b3c..87ccdb3b051f 100644
--- a/kernel/kcsan/kcsan.h
+++ b/kernel/kcsan/kcsan.h
@@ -31,11 +31,6 @@ void kcsan_save_irqtrace(struct task_struct *task);
void kcsan_restore_irqtrace(struct task_struct *task);
/*
- * Initialize debugfs file.
- */
-void kcsan_debugfs_init(void);
-
-/*
* Statistics counters displayed via debugfs; should only be modified in
* slow-paths.
*/