1 /* Generated by ./xlat/gen.sh from ./xlat/if_dqblk_valid.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(QIF_BLIMITS) || (defined(HAVE_DECL_QIF_BLIMITS) && HAVE_DECL_QIF_BLIMITS) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((QIF_BLIMITS) == ((1 << 0)), "QIF_BLIMITS != (1 << 0)"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define QIF_BLIMITS (1 << 0) 12 #endif 13 #if defined(QIF_SPACE) || (defined(HAVE_DECL_QIF_SPACE) && HAVE_DECL_QIF_SPACE) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((QIF_SPACE) == ((1 << 1)), "QIF_SPACE != (1 << 1)"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define QIF_SPACE (1 << 1) 19 #endif 20 #if defined(QIF_ILIMITS) || (defined(HAVE_DECL_QIF_ILIMITS) && HAVE_DECL_QIF_ILIMITS) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((QIF_ILIMITS) == ((1 << 2)), "QIF_ILIMITS != (1 << 2)"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define QIF_ILIMITS (1 << 2) 26 #endif 27 #if defined(QIF_INODES) || (defined(HAVE_DECL_QIF_INODES) && HAVE_DECL_QIF_INODES) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((QIF_INODES) == ((1 << 3)), "QIF_INODES != (1 << 3)"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define QIF_INODES (1 << 3) 33 #endif 34 #if defined(QIF_BTIME) || (defined(HAVE_DECL_QIF_BTIME) && HAVE_DECL_QIF_BTIME) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((QIF_BTIME) == ((1 << 4)), "QIF_BTIME != (1 << 4)"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define QIF_BTIME (1 << 4) 40 #endif 41 #if defined(QIF_ITIME) || (defined(HAVE_DECL_QIF_ITIME) && HAVE_DECL_QIF_ITIME) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((QIF_ITIME) == ((1 << 5)), "QIF_ITIME != (1 << 5)"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define QIF_ITIME (1 << 5) 47 #endif 48 49 #ifndef XLAT_MACROS_ONLY 50 51 # ifdef IN_MPERS 52 53 # error static const struct xlat if_dqblk_valid in mpers mode 54 55 # else 56 57 static 58 const struct xlat if_dqblk_valid[] = { 59 XLAT(QIF_BLIMITS), 60 XLAT(QIF_SPACE), 61 XLAT(QIF_ILIMITS), 62 XLAT(QIF_INODES), 63 XLAT(QIF_BTIME), 64 XLAT(QIF_ITIME), 65 XLAT_END 66 }; 67 68 # endif /* !IN_MPERS */ 69 70 #endif /* !XLAT_MACROS_ONLY */ 71