Commit 5cefef80 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Jim Harris
Browse files

bdev/passthru: Use typedef in bdev_module.h for spdk_bdev_unregsister



Including bdev_module.h and using spdk_bdev_unregister_cb instead of
spdk_delete_passthru_complete will follow other bdev modules.
This patch doesn't change any behavior.

Change-Id: Ia236ea37ae22ed5c7740b02d1c5bd37491b9cf9a
Signed-off-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/444166


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 393ac02b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ create_passthru_disk(const char *bdev_name, const char *vbdev_name)
}

void
delete_passthru_disk(struct spdk_bdev *bdev, spdk_delete_passthru_complete cb_fn, void *cb_arg)
delete_passthru_disk(struct spdk_bdev *bdev, spdk_bdev_unregister_cb cb_fn, void *cb_arg)
{
	struct bdev_names *name;

+2 −3
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@
#include "spdk/stdinc.h"

#include "spdk/bdev.h"

typedef void (*spdk_delete_passthru_complete)(void *cb_arg, int bdeverrno);
#include "spdk/bdev_module.h"

/**
 * Create new pass through bdev.
@@ -56,7 +55,7 @@ int create_passthru_disk(const char *bdev_name, const char *vbdev_name);
 * \param cb_fn Function to call after deletion.
 * \param cb_arg Argument to pass to cb_fn.
 */
void delete_passthru_disk(struct spdk_bdev *bdev, spdk_delete_passthru_complete cb_fn,
void delete_passthru_disk(struct spdk_bdev *bdev, spdk_bdev_unregister_cb cb_fn,
			  void *cb_arg);

#endif /* SPDK_VBDEV_PASSTHRU_H */