diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2021-07-06 09:10:56 +0200 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2021-07-26 21:09:38 +0200 |
commit | 5e4f6bcc296ffbd4a66ccdfb975202ba0147d306 (patch) | |
tree | 6a5779a0f6683063735920cf392a580e44145359 /hw/nvme/nvme.h | |
parent | 1d6f147f043bece029a795c6eb9d43c1abd909b6 (diff) | |
download | qemu-5e4f6bcc296ffbd4a66ccdfb975202ba0147d306.zip qemu-5e4f6bcc296ffbd4a66ccdfb975202ba0147d306.tar.gz qemu-5e4f6bcc296ffbd4a66ccdfb975202ba0147d306.tar.bz2 |
hw/nvme: remove NvmeCtrl parameter from ns setup/check functions
The nvme_ns_setup and nvme_ns_check_constraints should not depend on the
controller state. Refactor and remove it.
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/nvme/nvme.h')
-rw-r--r-- | hw/nvme/nvme.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvme/nvme.h b/hw/nvme/nvme.h index 56f8ece..0868359 100644 --- a/hw/nvme/nvme.h +++ b/hw/nvme/nvme.h @@ -246,7 +246,7 @@ static inline void nvme_aor_dec_active(NvmeNamespace *ns) } void nvme_ns_init_format(NvmeNamespace *ns); -int nvme_ns_setup(NvmeCtrl *n, NvmeNamespace *ns, Error **errp); +int nvme_ns_setup(NvmeNamespace *ns, Error **errp); void nvme_ns_drain(NvmeNamespace *ns); void nvme_ns_shutdown(NvmeNamespace *ns); void nvme_ns_cleanup(NvmeNamespace *ns); |