1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/bsg_flags.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #undef XLAT_PREV_VAL
7
8 #ifndef XLAT_MACROS_ONLY
9
10 # ifdef IN_MPERS
11
12 # error static const struct xlat bsg_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data bsg_flags_xdata[] = {
18 XLAT(BSG_FLAG_Q_AT_TAIL),
19 #define XLAT_VAL_0 ((unsigned) (BSG_FLAG_Q_AT_TAIL))
20 #define XLAT_STR_0 STRINGIFY(BSG_FLAG_Q_AT_TAIL)
21 XLAT(BSG_FLAG_Q_AT_HEAD),
22 #define XLAT_VAL_1 ((unsigned) (BSG_FLAG_Q_AT_HEAD))
23 #define XLAT_STR_1 STRINGIFY(BSG_FLAG_Q_AT_HEAD)
24 };
25 static
26 const struct xlat bsg_flags[1] = { {
27 .data = bsg_flags_xdata,
28 .size = ARRAY_SIZE(bsg_flags_xdata),
29 .type = XT_NORMAL,
30 .flags_mask = 0
31 # ifdef XLAT_VAL_0
32 | XLAT_VAL_0
33 # endif
34 # ifdef XLAT_VAL_1
35 | XLAT_VAL_1
36 # endif
37 ,
38 .flags_strsz = 0
39 # ifdef XLAT_STR_0
40 + sizeof(XLAT_STR_0)
41 # endif
42 # ifdef XLAT_STR_1
43 + sizeof(XLAT_STR_1)
44 # endif
45 ,
46 } };
47 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
48
49 # undef XLAT_STR_0
50 # undef XLAT_VAL_0
51 # undef XLAT_STR_1
52 # undef XLAT_VAL_1
53 # endif /* !IN_MPERS */
54
55 #endif /* !XLAT_MACROS_ONLY */