1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/falloc_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 falloc_flags in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data falloc_flags_xdata[] = {
18 XLAT(FALLOC_FL_KEEP_SIZE),
19 #define XLAT_VAL_0 ((unsigned) (FALLOC_FL_KEEP_SIZE))
20 #define XLAT_STR_0 STRINGIFY(FALLOC_FL_KEEP_SIZE)
21 XLAT(FALLOC_FL_PUNCH_HOLE),
22 #define XLAT_VAL_1 ((unsigned) (FALLOC_FL_PUNCH_HOLE))
23 #define XLAT_STR_1 STRINGIFY(FALLOC_FL_PUNCH_HOLE)
24 XLAT(FALLOC_FL_NO_HIDE_STALE),
25 #define XLAT_VAL_2 ((unsigned) (FALLOC_FL_NO_HIDE_STALE))
26 #define XLAT_STR_2 STRINGIFY(FALLOC_FL_NO_HIDE_STALE)
27 XLAT(FALLOC_FL_COLLAPSE_RANGE),
28 #define XLAT_VAL_3 ((unsigned) (FALLOC_FL_COLLAPSE_RANGE))
29 #define XLAT_STR_3 STRINGIFY(FALLOC_FL_COLLAPSE_RANGE)
30 XLAT(FALLOC_FL_ZERO_RANGE),
31 #define XLAT_VAL_4 ((unsigned) (FALLOC_FL_ZERO_RANGE))
32 #define XLAT_STR_4 STRINGIFY(FALLOC_FL_ZERO_RANGE)
33 XLAT(FALLOC_FL_INSERT_RANGE),
34 #define XLAT_VAL_5 ((unsigned) (FALLOC_FL_INSERT_RANGE))
35 #define XLAT_STR_5 STRINGIFY(FALLOC_FL_INSERT_RANGE)
36 XLAT(FALLOC_FL_UNSHARE_RANGE),
37 #define XLAT_VAL_6 ((unsigned) (FALLOC_FL_UNSHARE_RANGE))
38 #define XLAT_STR_6 STRINGIFY(FALLOC_FL_UNSHARE_RANGE)
39 };
40 static
41 const struct xlat falloc_flags[1] = { {
42 .data = falloc_flags_xdata,
43 .size = ARRAY_SIZE(falloc_flags_xdata),
44 .type = XT_NORMAL,
45 .flags_mask = 0
46 # ifdef XLAT_VAL_0
47 | XLAT_VAL_0
48 # endif
49 # ifdef XLAT_VAL_1
50 | XLAT_VAL_1
51 # endif
52 # ifdef XLAT_VAL_2
53 | XLAT_VAL_2
54 # endif
55 # ifdef XLAT_VAL_3
56 | XLAT_VAL_3
57 # endif
58 # ifdef XLAT_VAL_4
59 | XLAT_VAL_4
60 # endif
61 # ifdef XLAT_VAL_5
62 | XLAT_VAL_5
63 # endif
64 # ifdef XLAT_VAL_6
65 | XLAT_VAL_6
66 # endif
67 ,
68 .flags_strsz = 0
69 # ifdef XLAT_STR_0
70 + sizeof(XLAT_STR_0)
71 # endif
72 # ifdef XLAT_STR_1
73 + sizeof(XLAT_STR_1)
74 # endif
75 # ifdef XLAT_STR_2
76 + sizeof(XLAT_STR_2)
77 # endif
78 # ifdef XLAT_STR_3
79 + sizeof(XLAT_STR_3)
80 # endif
81 # ifdef XLAT_STR_4
82 + sizeof(XLAT_STR_4)
83 # endif
84 # ifdef XLAT_STR_5
85 + sizeof(XLAT_STR_5)
86 # endif
87 # ifdef XLAT_STR_6
88 + sizeof(XLAT_STR_6)
89 # endif
90 ,
91 } };
92 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
93
94 # undef XLAT_STR_0
95 # undef XLAT_VAL_0
96 # undef XLAT_STR_1
97 # undef XLAT_VAL_1
98 # undef XLAT_STR_2
99 # undef XLAT_VAL_2
100 # undef XLAT_STR_3
101 # undef XLAT_VAL_3
102 # undef XLAT_STR_4
103 # undef XLAT_VAL_4
104 # undef XLAT_STR_5
105 # undef XLAT_VAL_5
106 # undef XLAT_STR_6
107 # undef XLAT_VAL_6
108 # endif /* !IN_MPERS */
109
110 #endif /* !XLAT_MACROS_ONLY */