From 1900c8c261a06a35ec5b630cee0632eebe0ba2bb Mon Sep 17 00:00:00 2001 From: Maciej Szwed Date: Fri, 24 May 2019 11:48:16 +0200 Subject: [PATCH] bdev: Move spdk_bdev declaration higher in the bdev.h file It is required for upcoming patches. Signed-off-by: Maciej Szwed Change-Id: I836a1118309cc3ef4168d834697109200cf18553 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455646 Reviewed-by: Tomasz Zawadzki Reviewed-by: Paul Luse Reviewed-by: Ben Walker Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- include/spdk/bdev.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/spdk/bdev.h b/include/spdk/bdev.h index 21aa2f610..4e76415dd 100644 --- a/include/spdk/bdev.h +++ b/include/spdk/bdev.h @@ -60,6 +60,13 @@ extern "C" { */ #define SPDK_BDEV_BUF_SIZE_WITH_MD(x) (((x) / 512) * (512 + 16)) +/** + * \brief SPDK block device. + * + * This is a virtual representation of a block device that is exported by the backend. + */ +struct spdk_bdev; + /** * Block device remove callback. * @@ -86,13 +93,6 @@ enum spdk_bdev_status { SPDK_BDEV_STATUS_REMOVING, }; -/** - * \brief SPDK block device. - * - * This is a virtual representation of a block device that is exported by the backend. - */ -struct spdk_bdev; - /** * \brief Handle to an opened SPDK block device. */