[PATCH 27/50] xfs_db: listify the definition of enum typnm

Darrick J. Wong
2024-12-07T00:11:58Z

From: Darrick J. Wong <djwong@kernel.org>

Convert the enum definition into a list so that future patches adding
things to enum typnm don't have to reflow the entire thing.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
db/type.h | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/db/type.h b/db/type.h
index 411bfe90dbc7e6..397dcf5464c6c8 100644
--- a/db/type.h
+++ b/db/type.h
@@ -11,11 +11,30 @@ struct field;

typedef enum typnm
{
- TYP_AGF, TYP_AGFL, TYP_AGI, TYP_ATTR, TYP_BMAPBTA,
- TYP_BMAPBTD, TYP_BNOBT, TYP_CNTBT, TYP_RMAPBT, TYP_REFCBT, TYP_DATA,
- TYP_DIR2, TYP_DQBLK, TYP_INOBT, TYP_INODATA, TYP_INODE,
- TYP_LOG, TYP_RTBITMAP, TYP_RTSUMMARY, TYP_SB, TYP_SYMLINK,
- TYP_TEXT, TYP_FINOBT, TYP_NONE
+ TYP_AGF,
+ TYP_AGFL,
+ TYP_AGI,
+ TYP_ATTR,
+ TYP_BMAPBTA,
+ TYP_BMAPBTD,
+ TYP_BNOBT,
+ TYP_CNTBT,
+ TYP_RMAPBT,
+ TYP_REFCBT,
+ TYP_DATA,
+ TYP_DIR2,
+ TYP_DQBLK,
+ TYP_INOBT,
+ TYP_INODATA,
+ TYP_INODE,
+ TYP_LOG,
+ TYP_RTBITMAP,
+ TYP_RTSUMMARY,
+ TYP_SB,
+ TYP_SYMLINK,
+ TYP_TEXT,
+ TYP_FINOBT,
+ TYP_NONE
} typnm_t;

#define DB_FUZZ 2