aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/raid
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-03-24 08:25:19 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-24 07:57:08 -0600
commit74cc979c3c7f8328b24651daf15280f07533e735 (patch)
treeda9360a167996f90b39acd5bf67e22f96128338d /include/linux/raid
parentblock: unexport read_dev_sector and put_dev_sector (diff)
downloadwireguard-linux-74cc979c3c7f8328b24651daf15280f07533e735.tar.xz
wireguard-linux-74cc979c3c7f8328b24651daf15280f07533e735.zip
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.h3
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);