1 /* Generated by ./xlat/gen.sh from ./xlat/btrfs_balance_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(BTRFS_BALANCE_DATA) || (defined(HAVE_DECL_BTRFS_BALANCE_DATA) && HAVE_DECL_BTRFS_BALANCE_DATA) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((BTRFS_BALANCE_DATA) == ((1ULL << 0)), "BTRFS_BALANCE_DATA != (1ULL << 0)"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define BTRFS_BALANCE_DATA (1ULL << 0) 12 #endif 13 #if defined(BTRFS_BALANCE_SYSTEM) || (defined(HAVE_DECL_BTRFS_BALANCE_SYSTEM) && HAVE_DECL_BTRFS_BALANCE_SYSTEM) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((BTRFS_BALANCE_SYSTEM) == ((1ULL << 1)), "BTRFS_BALANCE_SYSTEM != (1ULL << 1)"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define BTRFS_BALANCE_SYSTEM (1ULL << 1) 19 #endif 20 #if defined(BTRFS_BALANCE_METADATA) || (defined(HAVE_DECL_BTRFS_BALANCE_METADATA) && HAVE_DECL_BTRFS_BALANCE_METADATA) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((BTRFS_BALANCE_METADATA) == ((1ULL << 2)), "BTRFS_BALANCE_METADATA != (1ULL << 2)"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define BTRFS_BALANCE_METADATA (1ULL << 2) 26 #endif 27 #if defined(BTRFS_BALANCE_FORCE) || (defined(HAVE_DECL_BTRFS_BALANCE_FORCE) && HAVE_DECL_BTRFS_BALANCE_FORCE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((BTRFS_BALANCE_FORCE) == ((1ULL << 3)), "BTRFS_BALANCE_FORCE != (1ULL << 3)"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define BTRFS_BALANCE_FORCE (1ULL << 3) 33 #endif 34 #if defined(BTRFS_BALANCE_RESUME) || (defined(HAVE_DECL_BTRFS_BALANCE_RESUME) && HAVE_DECL_BTRFS_BALANCE_RESUME) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((BTRFS_BALANCE_RESUME) == ((1ULL << 4)), "BTRFS_BALANCE_RESUME != (1ULL << 4)"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define BTRFS_BALANCE_RESUME (1ULL << 4) 40 #endif 41 42 #ifndef XLAT_MACROS_ONLY 43 44 # ifdef IN_MPERS 45 46 extern const struct xlat btrfs_balance_flags[]; 47 48 # else 49 50 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 51 static 52 # endif 53 const struct xlat btrfs_balance_flags[] = { 54 XLAT_TYPE(uint64_t, BTRFS_BALANCE_DATA), 55 XLAT_TYPE(uint64_t, BTRFS_BALANCE_SYSTEM), 56 XLAT_TYPE(uint64_t, BTRFS_BALANCE_METADATA), 57 XLAT_TYPE(uint64_t, BTRFS_BALANCE_FORCE), 58 XLAT_TYPE(uint64_t, BTRFS_BALANCE_RESUME), 59 XLAT_END 60 }; 61 62 # endif /* !IN_MPERS */ 63 64 #endif /* !XLAT_MACROS_ONLY */ 65