block: cleanup how md_autodetect_dev is called
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:19 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:08 +0000 (07:57 -0600)
commit74cc979c3c7f8328b24651daf15280f07533e735
treeda9360a167996f90b39acd5bf67e22f96128338d
parent1a9fba3a77a5b39d1c9e1611758303f2649474e9
block: cleanup how md_autodetect_dev is called

Add a new include/linux/raid/detect.h header to declare the
md_autodetect_dev prototype which can be shared between md and
the partition code.  Then use IS_BUILTIN to call it instead of the
ifdef magic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
drivers/md/md.c
include/linux/raid/detect.h [new file with mode: 0644]