diff options
author | Klaus Jensen | 2020-12-09 23:12:49 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-02-08 21:15:53 +0100 |
commit | b05fde2881118e7e6e66b352e3a7ea1b8f52e1ad (patch) | |
tree | 7db0814dc3d88881f570e7c2ac3e1eff4ec927cd /include/block | |
parent | hw/block/nvme: merge implicitly/explicitly opened processing masks (diff) | |
download | qemu-b05fde2881118e7e6e66b352e3a7ea1b8f52e1ad.tar.gz qemu-b05fde2881118e7e6e66b352e3a7ea1b8f52e1ad.tar.xz qemu-b05fde2881118e7e6e66b352e3a7ea1b8f52e1ad.zip |
hw/block/nvme: enum style fix
Align with existing style and use a typedef for header-file enums.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Tested-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/nvme.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h index 9494246f1f..45b2678db1 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -1212,7 +1212,7 @@ typedef struct QEMU_PACKED NvmeZoneDescr { uint8_t rsvd32[32]; } NvmeZoneDescr; -enum NvmeZoneState { +typedef enum NvmeZoneState { NVME_ZONE_STATE_RESERVED = 0x00, NVME_ZONE_STATE_EMPTY = 0x01, NVME_ZONE_STATE_IMPLICITLY_OPEN = 0x02, @@ -1221,7 +1221,7 @@ enum NvmeZoneState { NVME_ZONE_STATE_READ_ONLY = 0x0D, NVME_ZONE_STATE_FULL = 0x0E, NVME_ZONE_STATE_OFFLINE = 0x0F, -}; +} NvmeZoneState; static inline void _nvme_check_size(void) { |