From: Niklas Cassel <niklas.cassel@xxxxxxx> In order to avoid additional ifdef FIO_HAVE_IOPRIO_CLASS/FIO_HAVE_IOPRIO from being added to the code, define IOPRIO_{MIN,MAX}_PRIO_CLASS and IOPRIO_{MIN,MAX}_PRIO_CLASS as zero for systems without support for ioprio. Signed-off-by: Niklas Cassel <niklas.cassel@xxxxxxx> --- os/os.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/os.h b/os/os.h index 5965d7b8..810e6166 100644 --- a/os/os.h +++ b/os/os.h @@ -119,10 +119,14 @@ extern int fio_cpus_split(os_cpu_mask_t *mask, unsigned int cpu); #ifndef FIO_HAVE_IOPRIO_CLASS #define ioprio_value_is_class_rt(prio) (false) +#define IOPRIO_MIN_PRIO_CLASS 0 +#define IOPRIO_MAX_PRIO_CLASS 0 #endif #ifndef FIO_HAVE_IOPRIO #define ioprio_value(prioclass, prio) (0) #define ioprio_set(which, who, prioclass, prio) (0) +#define IOPRIO_MIN_PRIO 0 +#define IOPRIO_MAX_PRIO 0 #endif #ifndef FIO_HAVE_ODIRECT -- 2.34.1