summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-vdo/encodings.c
diff options
context:
space:
mode:
authorBruce Johnston <bjohnsto@redhat.com>2024-02-26 23:04:43 +0100
committerMike Snitzer <snitzer@kernel.org>2024-03-04 21:07:56 +0100
commit6008d526b06bab2cbea194948aec0cd04461dcc6 (patch)
tree8d360237448a4049a931125b74415f7d80a11702 /drivers/md/dm-vdo/encodings.c
parentdm vdo: remove outdated pointer_map reference (diff)
downloadlinux-6008d526b06bab2cbea194948aec0cd04461dcc6.tar.xz
linux-6008d526b06bab2cbea194948aec0cd04461dcc6.zip
dm-vdo: change unnamed enums to defines
Signed-off-by: Bruce Johnston <bjohnsto@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-vdo/encodings.c')
-rw-r--r--drivers/md/dm-vdo/encodings.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm-vdo/encodings.c b/drivers/md/dm-vdo/encodings.c
index 5012042b26af..4a0a6afea670 100644
--- a/drivers/md/dm-vdo/encodings.c
+++ b/drivers/md/dm-vdo/encodings.c
@@ -55,9 +55,7 @@ static const struct header GEOMETRY_BLOCK_HEADER_4_0 = {
const u8 VDO_GEOMETRY_MAGIC_NUMBER[VDO_GEOMETRY_MAGIC_NUMBER_SIZE + 1] = "dmvdo001";
-enum {
- PAGE_HEADER_4_1_SIZE = 8 + 8 + 8 + 1 + 1 + 1 + 1,
-};
+#define PAGE_HEADER_4_1_SIZE (8 + 8 + 8 + 1 + 1 + 1 + 1)
static const struct version_number BLOCK_MAP_4_1 = {
.major_version = 4,