aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-07 16:18:59 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-16 15:34:47 +0200
commit4f5b246b37e024955c0fcca0c7f5952089052d1d (patch)
treea005ef9ca23012d565665c176e92f0e6f3047413 /include/linux/raid
parentinit: remove the bstat helper (diff)
downloadlinux-dev-4f5b246b37e024955c0fcca0c7f5952089052d1d.tar.xz
linux-dev-4f5b246b37e024955c0fcca0c7f5952089052d1d.zip
md: move the early init autodetect code to drivers/md/
Just like the NFS and CIFS root code this better lives with the driver it is tightly integrated with. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Song Liu <song@kernel.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/raid')
-rw-r--r--include/linux/raid/detect.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/raid/detect.h b/include/linux/raid/detect.h
index 37dd3f40cd31..1f029a71c3ef 100644
--- a/include/linux/raid/detect.h
+++ b/include/linux/raid/detect.h
@@ -1,3 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
void md_autodetect_dev(dev_t dev);
+
+#ifdef CONFIG_BLK_DEV_MD
+void md_run_setup(void);
+#else
+static inline void md_run_setup(void)
+{
+}
+#endif