diff options
author | Christoph Hellwig <hch@lst.de> | 2020-03-24 08:25:19 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-24 07:57:08 -0600 |
commit | 74cc979c3c7f8328b24651daf15280f07533e735 (patch) | |
tree | da9360a167996f90b39acd5bf67e22f96128338d /include/linux/raid | |
parent | 1a9fba3a77a5b39d1c9e1611758303f2649474e9 (diff) |
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>
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/detect.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/raid/detect.h b/include/linux/raid/detect.h new file mode 100644 index 000000000000..37dd3f40cd31 --- /dev/null +++ b/include/linux/raid/detect.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +void md_autodetect_dev(dev_t dev); |