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