1*cf84ac9aSAndroid Build Coastguard Worker /* Generated by ./xlat/gen.sh from ./xlat/ioprio_who.in; do not edit. */ 2*cf84ac9aSAndroid Build Coastguard Worker 3*cf84ac9aSAndroid Build Coastguard Worker #include "gcc_compat.h" 4*cf84ac9aSAndroid Build Coastguard Worker #include "static_assert.h" 5*cf84ac9aSAndroid Build Coastguard Worker 6*cf84ac9aSAndroid Build Coastguard Worker #if defined(IOPRIO_WHO_PROCESS) || (defined(HAVE_DECL_IOPRIO_WHO_PROCESS) && HAVE_DECL_IOPRIO_WHO_PROCESS) 7*cf84ac9aSAndroid Build Coastguard Worker DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8*cf84ac9aSAndroid Build Coastguard Worker static_assert((IOPRIO_WHO_PROCESS) == (1), "IOPRIO_WHO_PROCESS != 1"); 9*cf84ac9aSAndroid Build Coastguard Worker DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10*cf84ac9aSAndroid Build Coastguard Worker #else 11*cf84ac9aSAndroid Build Coastguard Worker # define IOPRIO_WHO_PROCESS 1 12*cf84ac9aSAndroid Build Coastguard Worker #endif 13*cf84ac9aSAndroid Build Coastguard Worker #if defined(IOPRIO_WHO_PGRP) || (defined(HAVE_DECL_IOPRIO_WHO_PGRP) && HAVE_DECL_IOPRIO_WHO_PGRP) 14*cf84ac9aSAndroid Build Coastguard Worker DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15*cf84ac9aSAndroid Build Coastguard Worker static_assert((IOPRIO_WHO_PGRP) == (2), "IOPRIO_WHO_PGRP != 2"); 16*cf84ac9aSAndroid Build Coastguard Worker DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17*cf84ac9aSAndroid Build Coastguard Worker #else 18*cf84ac9aSAndroid Build Coastguard Worker # define IOPRIO_WHO_PGRP 2 19*cf84ac9aSAndroid Build Coastguard Worker #endif 20*cf84ac9aSAndroid Build Coastguard Worker #if defined(IOPRIO_WHO_USER) || (defined(HAVE_DECL_IOPRIO_WHO_USER) && HAVE_DECL_IOPRIO_WHO_USER) 21*cf84ac9aSAndroid Build Coastguard Worker DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22*cf84ac9aSAndroid Build Coastguard Worker static_assert((IOPRIO_WHO_USER) == (3), "IOPRIO_WHO_USER != 3"); 23*cf84ac9aSAndroid Build Coastguard Worker DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24*cf84ac9aSAndroid Build Coastguard Worker #else 25*cf84ac9aSAndroid Build Coastguard Worker # define IOPRIO_WHO_USER 3 26*cf84ac9aSAndroid Build Coastguard Worker #endif 27*cf84ac9aSAndroid Build Coastguard Worker 28*cf84ac9aSAndroid Build Coastguard Worker #ifndef XLAT_MACROS_ONLY 29*cf84ac9aSAndroid Build Coastguard Worker 30*cf84ac9aSAndroid Build Coastguard Worker # ifdef IN_MPERS 31*cf84ac9aSAndroid Build Coastguard Worker 32*cf84ac9aSAndroid Build Coastguard Worker # error static const struct xlat ioprio_who in mpers mode 33*cf84ac9aSAndroid Build Coastguard Worker 34*cf84ac9aSAndroid Build Coastguard Worker # else 35*cf84ac9aSAndroid Build Coastguard Worker 36*cf84ac9aSAndroid Build Coastguard Worker static 37*cf84ac9aSAndroid Build Coastguard Worker const struct xlat ioprio_who[] = { 38*cf84ac9aSAndroid Build Coastguard Worker XLAT(IOPRIO_WHO_PROCESS), 39*cf84ac9aSAndroid Build Coastguard Worker XLAT(IOPRIO_WHO_PGRP), 40*cf84ac9aSAndroid Build Coastguard Worker XLAT(IOPRIO_WHO_USER), 41*cf84ac9aSAndroid Build Coastguard Worker XLAT_END 42*cf84ac9aSAndroid Build Coastguard Worker }; 43*cf84ac9aSAndroid Build Coastguard Worker 44*cf84ac9aSAndroid Build Coastguard Worker # endif /* !IN_MPERS */ 45*cf84ac9aSAndroid Build Coastguard Worker 46*cf84ac9aSAndroid Build Coastguard Worker #endif /* !XLAT_MACROS_ONLY */ 47