Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/fan_mark_flags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(FAN_MARK_ADD) || (defined(HAVE_DECL_FAN_MARK_ADD) && HAVE_DECL_FAN_MARK_ADD)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((FAN_MARK_ADD) == (0x00000001), "FAN_MARK_ADD != 0x00000001");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define FAN_MARK_ADD 0x00000001
     12 #endif
     13 #if defined(FAN_MARK_REMOVE) || (defined(HAVE_DECL_FAN_MARK_REMOVE) && HAVE_DECL_FAN_MARK_REMOVE)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((FAN_MARK_REMOVE) == (0x00000002), "FAN_MARK_REMOVE != 0x00000002");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define FAN_MARK_REMOVE 0x00000002
     19 #endif
     20 #if defined(FAN_MARK_DONT_FOLLOW) || (defined(HAVE_DECL_FAN_MARK_DONT_FOLLOW) && HAVE_DECL_FAN_MARK_DONT_FOLLOW)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((FAN_MARK_DONT_FOLLOW) == (0x00000004), "FAN_MARK_DONT_FOLLOW != 0x00000004");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define FAN_MARK_DONT_FOLLOW 0x00000004
     26 #endif
     27 #if defined(FAN_MARK_ONLYDIR) || (defined(HAVE_DECL_FAN_MARK_ONLYDIR) && HAVE_DECL_FAN_MARK_ONLYDIR)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((FAN_MARK_ONLYDIR) == (0x00000008), "FAN_MARK_ONLYDIR != 0x00000008");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define FAN_MARK_ONLYDIR 0x00000008
     33 #endif
     34 #if defined(FAN_MARK_MOUNT) || (defined(HAVE_DECL_FAN_MARK_MOUNT) && HAVE_DECL_FAN_MARK_MOUNT)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((FAN_MARK_MOUNT) == (0x00000010), "FAN_MARK_MOUNT != 0x00000010");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define FAN_MARK_MOUNT 0x00000010
     40 #endif
     41 #if defined(FAN_MARK_IGNORED_MASK) || (defined(HAVE_DECL_FAN_MARK_IGNORED_MASK) && HAVE_DECL_FAN_MARK_IGNORED_MASK)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((FAN_MARK_IGNORED_MASK) == (0x00000020), "FAN_MARK_IGNORED_MASK != 0x00000020");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define FAN_MARK_IGNORED_MASK 0x00000020
     47 #endif
     48 #if defined(FAN_MARK_IGNORED_SURV_MODIFY) || (defined(HAVE_DECL_FAN_MARK_IGNORED_SURV_MODIFY) && HAVE_DECL_FAN_MARK_IGNORED_SURV_MODIFY)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((FAN_MARK_IGNORED_SURV_MODIFY) == (0x00000040), "FAN_MARK_IGNORED_SURV_MODIFY != 0x00000040");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define FAN_MARK_IGNORED_SURV_MODIFY 0x00000040
     54 #endif
     55 #if defined(FAN_MARK_FLUSH) || (defined(HAVE_DECL_FAN_MARK_FLUSH) && HAVE_DECL_FAN_MARK_FLUSH)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((FAN_MARK_FLUSH) == (0x00000080), "FAN_MARK_FLUSH != 0x00000080");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define FAN_MARK_FLUSH 0x00000080
     61 #endif
     62 
     63 #ifndef XLAT_MACROS_ONLY
     64 
     65 # ifdef IN_MPERS
     66 
     67 #  error static const struct xlat fan_mark_flags in mpers mode
     68 
     69 # else
     70 
     71 static
     72 const struct xlat fan_mark_flags[] = {
     73  XLAT(FAN_MARK_ADD),
     74  XLAT(FAN_MARK_REMOVE),
     75  XLAT(FAN_MARK_DONT_FOLLOW),
     76  XLAT(FAN_MARK_ONLYDIR),
     77  XLAT(FAN_MARK_MOUNT),
     78  XLAT(FAN_MARK_IGNORED_MASK),
     79  XLAT(FAN_MARK_IGNORED_SURV_MODIFY),
     80  XLAT(FAN_MARK_FLUSH),
     81  XLAT_END
     82 };
     83 
     84 # endif /* !IN_MPERS */
     85 
     86 #endif /* !XLAT_MACROS_ONLY */
     87