1 /* Generated by ./xlat/gen.sh from ./xlat/btrfs_balance_state.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(BTRFS_BALANCE_STATE_RUNNING) || (defined(HAVE_DECL_BTRFS_BALANCE_STATE_RUNNING) && HAVE_DECL_BTRFS_BALANCE_STATE_RUNNING) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((BTRFS_BALANCE_STATE_RUNNING) == ((1ULL << 0)), "BTRFS_BALANCE_STATE_RUNNING != (1ULL << 0)"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define BTRFS_BALANCE_STATE_RUNNING (1ULL << 0) 12 #endif 13 #if defined(BTRFS_BALANCE_STATE_PAUSE_REQ) || (defined(HAVE_DECL_BTRFS_BALANCE_STATE_PAUSE_REQ) && HAVE_DECL_BTRFS_BALANCE_STATE_PAUSE_REQ) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((BTRFS_BALANCE_STATE_PAUSE_REQ) == ((1ULL << 1)), "BTRFS_BALANCE_STATE_PAUSE_REQ != (1ULL << 1)"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define BTRFS_BALANCE_STATE_PAUSE_REQ (1ULL << 1) 19 #endif 20 #if defined(BTRFS_BALANCE_STATE_CANCEL_REQ) || (defined(HAVE_DECL_BTRFS_BALANCE_STATE_CANCEL_REQ) && HAVE_DECL_BTRFS_BALANCE_STATE_CANCEL_REQ) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((BTRFS_BALANCE_STATE_CANCEL_REQ) == ((1ULL << 2)), "BTRFS_BALANCE_STATE_CANCEL_REQ != (1ULL << 2)"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define BTRFS_BALANCE_STATE_CANCEL_REQ (1ULL << 2) 26 #endif 27 28 #ifndef XLAT_MACROS_ONLY 29 30 # ifdef IN_MPERS 31 32 extern const struct xlat btrfs_balance_state[]; 33 34 # else 35 36 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 37 static 38 # endif 39 const struct xlat btrfs_balance_state[] = { 40 XLAT(BTRFS_BALANCE_STATE_RUNNING), 41 XLAT(BTRFS_BALANCE_STATE_PAUSE_REQ), 42 XLAT(BTRFS_BALANCE_STATE_CANCEL_REQ), 43 XLAT_END 44 }; 45 46 # endif /* !IN_MPERS */ 47 48 #endif /* !XLAT_MACROS_ONLY */ 49