From c73a0709e4a7d12107ce957105f694fdd6b7f8b6 Mon Sep 17 00:00:00 2001 From: AKASHI Takahiro Date: Tue, 19 Apr 2022 10:01:55 +0900 Subject: [PATCH] sandbox: move a function prototype Since host_get_dev_errr() is defined in drivers/block/sandbox.c, the associated function prototype should be in a more appropriate header file. Fixes: commit 4101f6879256 ("dm: Drop the block_dev_desc_t typedef") Signed-off-by: AKASHI Takahiro --- include/part.h | 1 - include/sandboxblockdev.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/part.h b/include/part.h index 74911f4a5b..625afe79ba 100644 --- a/include/part.h +++ b/include/part.h @@ -104,7 +104,6 @@ struct disk_part { struct blk_desc *blk_get_dev(const char *ifname, int dev); struct blk_desc *mg_disk_get_dev(int dev); -int host_get_dev_err(int dev, struct blk_desc **blk_devp); /* disk/part.c */ int part_get_info(struct blk_desc *dev_desc, int part, diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h index 4ca9554e38..dc983f0417 100644 --- a/include/sandboxblockdev.h +++ b/include/sandboxblockdev.h @@ -26,4 +26,6 @@ struct host_block_dev { */ int host_dev_bind(int dev, char *filename, bool removable); +int host_get_dev_err(int dev, struct blk_desc **blk_devp); + #endif -- 2.39.5