1 /* Generated by ./xlat/gen.sh from ./xlat/smc_protocols.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SMCPROTO_SMC) || (defined(HAVE_DECL_SMCPROTO_SMC) && HAVE_DECL_SMCPROTO_SMC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SMCPROTO_SMC) == (0), "SMCPROTO_SMC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SMCPROTO_SMC 0 12 #endif 13 #if defined(SMCPROTO_SMC6) || (defined(HAVE_DECL_SMCPROTO_SMC6) && HAVE_DECL_SMCPROTO_SMC6) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SMCPROTO_SMC6) == (1), "SMCPROTO_SMC6 != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SMCPROTO_SMC6 1 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat smc_protocols in mpers mode 26 27 # else 28 29 static 30 const struct xlat smc_protocols[] = { 31 [SMCPROTO_SMC] = XLAT(SMCPROTO_SMC), 32 [SMCPROTO_SMC6] = XLAT(SMCPROTO_SMC6), 33 XLAT_END 34 }; 35 36 # endif /* !IN_MPERS */ 37 38 #endif /* !XLAT_MACROS_ONLY */ 39