Skip to content

Commit

Permalink
hw/block/nvme: remove non-shared defines from header file
Browse files Browse the repository at this point in the history
Remove non-shared defines from the shared header.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
  • Loading branch information
birkelund committed May 17, 2021
1 parent 7ef37c1 commit de482d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions hw/block/nvme-ns.c
Expand Up @@ -23,6 +23,7 @@
#include "trace.h"

#define MIN_DISCARD_GRANULARITY (4 * KiB)
#define NVME_DEFAULT_ZONE_SIZE (128 * MiB)

void nvme_ns_init_format(NvmeNamespace *ns)
{
Expand Down
1 change: 1 addition & 0 deletions hw/block/nvme.c
Expand Up @@ -168,6 +168,7 @@
#define NVME_TEMPERATURE_WARNING 0x157
#define NVME_TEMPERATURE_CRITICAL 0x175
#define NVME_NUM_FW_SLOTS 1
#define NVME_DEFAULT_MAX_ZA_SIZE (128 * KiB)

#define NVME_GUEST_ERR(trace, fmt, ...) \
do { \
Expand Down
2 changes: 0 additions & 2 deletions hw/block/nvme.h
Expand Up @@ -24,8 +24,6 @@

#include "block/nvme.h"

#define NVME_DEFAULT_ZONE_SIZE (128 * MiB)
#define NVME_DEFAULT_MAX_ZA_SIZE (128 * KiB)
#define NVME_MAX_CONTROLLERS 32
#define NVME_MAX_NAMESPACES 256

Expand Down

0 comments on commit de482d1

Please sign in to comment.