summaryrefslogtreecommitdiff
path: root/drivers/md/Makefile
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-07 17:18:59 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-16 16:34:47 +0300
commit4f5b246b37e024955c0fcca0c7f5952089052d1d (patch)
treea005ef9ca23012d565665c176e92f0e6f3047413 /drivers/md/Makefile
parent881627f353754dd05a8f3e1c1941f0dbbf47a170 (diff)
downloadlinux-4f5b246b37e024955c0fcca0c7f5952089052d1d.tar.xz
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 'drivers/md/Makefile')
-rw-r--r--drivers/md/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index 31840f95cd40..6d3e234dc46a 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -43,6 +43,9 @@ obj-$(CONFIG_MD_FAULTY) += faulty.o
obj-$(CONFIG_MD_CLUSTER) += md-cluster.o
obj-$(CONFIG_BCACHE) += bcache/
obj-$(CONFIG_BLK_DEV_MD) += md-mod.o
+ifeq ($(CONFIG_BLK_DEV_MD),y)
+obj-y += md-autodetect.o
+endif
obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o
obj-$(CONFIG_BLK_DEV_DM_BUILTIN) += dm-builtin.o
obj-$(CONFIG_DM_UNSTRIPED) += dm-unstripe.o