/* Generated by ./xlat/gen.sh from ./xlat/btrfs_space_info_flags.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(BTRFS_BLOCK_GROUP_DATA) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_DATA) && HAVE_DECL_BTRFS_BLOCK_GROUP_DATA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_DATA) == ((1ULL << 0)), "BTRFS_BLOCK_GROUP_DATA != (1ULL << 0)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_DATA (1ULL << 0)
#endif
#if defined(BTRFS_BLOCK_GROUP_SYSTEM) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_SYSTEM) && HAVE_DECL_BTRFS_BLOCK_GROUP_SYSTEM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_SYSTEM) == ((1ULL << 1)), "BTRFS_BLOCK_GROUP_SYSTEM != (1ULL << 1)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_SYSTEM (1ULL << 1)
#endif
#if defined(BTRFS_BLOCK_GROUP_METADATA) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_METADATA) && HAVE_DECL_BTRFS_BLOCK_GROUP_METADATA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_METADATA) == ((1ULL << 2)), "BTRFS_BLOCK_GROUP_METADATA != (1ULL << 2)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_METADATA (1ULL << 2)
#endif
#if defined(BTRFS_BLOCK_GROUP_RAID0) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_RAID0) && HAVE_DECL_BTRFS_BLOCK_GROUP_RAID0)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_RAID0) == ((1ULL << 3)), "BTRFS_BLOCK_GROUP_RAID0 != (1ULL << 3)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_RAID0 (1ULL << 3)
#endif
#if defined(BTRFS_BLOCK_GROUP_RAID1) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_RAID1) && HAVE_DECL_BTRFS_BLOCK_GROUP_RAID1)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_RAID1) == ((1ULL << 4)), "BTRFS_BLOCK_GROUP_RAID1 != (1ULL << 4)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_RAID1 (1ULL << 4)
#endif
#if defined(BTRFS_BLOCK_GROUP_DUP) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_DUP) && HAVE_DECL_BTRFS_BLOCK_GROUP_DUP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_DUP) == ((1ULL << 5)), "BTRFS_BLOCK_GROUP_DUP != (1ULL << 5)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_DUP (1ULL << 5)
#endif
#if defined(BTRFS_BLOCK_GROUP_RAID10) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_RAID10) && HAVE_DECL_BTRFS_BLOCK_GROUP_RAID10)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_RAID10) == ((1ULL << 6)), "BTRFS_BLOCK_GROUP_RAID10 != (1ULL << 6)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6)
#endif
#if defined(BTRFS_BLOCK_GROUP_RAID5) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_RAID5) && HAVE_DECL_BTRFS_BLOCK_GROUP_RAID5)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_RAID5) == ((1ULL << 7)), "BTRFS_BLOCK_GROUP_RAID5 != (1ULL << 7)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_RAID5 (1ULL << 7)
#endif
#if defined(BTRFS_BLOCK_GROUP_RAID6) || (defined(HAVE_DECL_BTRFS_BLOCK_GROUP_RAID6) && HAVE_DECL_BTRFS_BLOCK_GROUP_RAID6)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_BLOCK_GROUP_RAID6) == ((1ULL << 8)), "BTRFS_BLOCK_GROUP_RAID6 != (1ULL << 8)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_BLOCK_GROUP_RAID6 (1ULL << 8)
#endif
#if defined(BTRFS_AVAIL_ALLOC_BIT_SINGLE) || (defined(HAVE_DECL_BTRFS_AVAIL_ALLOC_BIT_SINGLE) && HAVE_DECL_BTRFS_AVAIL_ALLOC_BIT_SINGLE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_AVAIL_ALLOC_BIT_SINGLE) == ((1ULL << 48)), "BTRFS_AVAIL_ALLOC_BIT_SINGLE != (1ULL << 48)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48)
#endif
#if defined(BTRFS_SPACE_INFO_GLOBAL_RSV) || (defined(HAVE_DECL_BTRFS_SPACE_INFO_GLOBAL_RSV) && HAVE_DECL_BTRFS_SPACE_INFO_GLOBAL_RSV)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((BTRFS_SPACE_INFO_GLOBAL_RSV) == ((1ULL << 49)), "BTRFS_SPACE_INFO_GLOBAL_RSV != (1ULL << 49)");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define BTRFS_SPACE_INFO_GLOBAL_RSV (1ULL << 49)
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

extern const struct xlat btrfs_space_info_flags[];

# else

static const struct xlat_data btrfs_space_info_flags_xdata[] = {
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_DATA),
 #define XLAT_VAL_0 ((uint64_t) (BTRFS_BLOCK_GROUP_DATA))
 #define XLAT_STR_0 STRINGIFY(BTRFS_BLOCK_GROUP_DATA)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_SYSTEM),
 #define XLAT_VAL_1 ((uint64_t) (BTRFS_BLOCK_GROUP_SYSTEM))
 #define XLAT_STR_1 STRINGIFY(BTRFS_BLOCK_GROUP_SYSTEM)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_METADATA),
 #define XLAT_VAL_2 ((uint64_t) (BTRFS_BLOCK_GROUP_METADATA))
 #define XLAT_STR_2 STRINGIFY(BTRFS_BLOCK_GROUP_METADATA)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_RAID0),
 #define XLAT_VAL_3 ((uint64_t) (BTRFS_BLOCK_GROUP_RAID0))
 #define XLAT_STR_3 STRINGIFY(BTRFS_BLOCK_GROUP_RAID0)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_RAID1),
 #define XLAT_VAL_4 ((uint64_t) (BTRFS_BLOCK_GROUP_RAID1))
 #define XLAT_STR_4 STRINGIFY(BTRFS_BLOCK_GROUP_RAID1)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_DUP),
 #define XLAT_VAL_5 ((uint64_t) (BTRFS_BLOCK_GROUP_DUP))
 #define XLAT_STR_5 STRINGIFY(BTRFS_BLOCK_GROUP_DUP)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_RAID10),
 #define XLAT_VAL_6 ((uint64_t) (BTRFS_BLOCK_GROUP_RAID10))
 #define XLAT_STR_6 STRINGIFY(BTRFS_BLOCK_GROUP_RAID10)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_RAID5),
 #define XLAT_VAL_7 ((uint64_t) (BTRFS_BLOCK_GROUP_RAID5))
 #define XLAT_STR_7 STRINGIFY(BTRFS_BLOCK_GROUP_RAID5)
 XLAT_TYPE(uint64_t, BTRFS_BLOCK_GROUP_RAID6),
 #define XLAT_VAL_8 ((uint64_t) (BTRFS_BLOCK_GROUP_RAID6))
 #define XLAT_STR_8 STRINGIFY(BTRFS_BLOCK_GROUP_RAID6)
 XLAT_TYPE(uint64_t, BTRFS_AVAIL_ALLOC_BIT_SINGLE),
 #define XLAT_VAL_9 ((uint64_t) (BTRFS_AVAIL_ALLOC_BIT_SINGLE))
 #define XLAT_STR_9 STRINGIFY(BTRFS_AVAIL_ALLOC_BIT_SINGLE)
 XLAT_TYPE(uint64_t, BTRFS_SPACE_INFO_GLOBAL_RSV),
 #define XLAT_VAL_10 ((uint64_t) (BTRFS_SPACE_INFO_GLOBAL_RSV))
 #define XLAT_STR_10 STRINGIFY(BTRFS_SPACE_INFO_GLOBAL_RSV)
};
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
static
#  endif
const struct xlat btrfs_space_info_flags[1] = { {
 .data = btrfs_space_info_flags_xdata,
 .size = ARRAY_SIZE(btrfs_space_info_flags_xdata),
 .type = XT_NORMAL,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
#  ifdef XLAT_VAL_5
  | XLAT_VAL_5
#  endif
#  ifdef XLAT_VAL_6
  | XLAT_VAL_6
#  endif
#  ifdef XLAT_VAL_7
  | XLAT_VAL_7
#  endif
#  ifdef XLAT_VAL_8
  | XLAT_VAL_8
#  endif
#  ifdef XLAT_VAL_9
  | XLAT_VAL_9
#  endif
#  ifdef XLAT_VAL_10
  | XLAT_VAL_10
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
#  ifdef XLAT_STR_5
  + sizeof(XLAT_STR_5)
#  endif
#  ifdef XLAT_STR_6
  + sizeof(XLAT_STR_6)
#  endif
#  ifdef XLAT_STR_7
  + sizeof(XLAT_STR_7)
#  endif
#  ifdef XLAT_STR_8
  + sizeof(XLAT_STR_8)
#  endif
#  ifdef XLAT_STR_9
  + sizeof(XLAT_STR_9)
#  endif
#  ifdef XLAT_STR_10
  + sizeof(XLAT_STR_10)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
#  undef XLAT_STR_5
#  undef XLAT_VAL_5
#  undef XLAT_STR_6
#  undef XLAT_VAL_6
#  undef XLAT_STR_7
#  undef XLAT_VAL_7
#  undef XLAT_STR_8
#  undef XLAT_VAL_8
#  undef XLAT_STR_9
#  undef XLAT_VAL_9
#  undef XLAT_STR_10
#  undef XLAT_VAL_10
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
