X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os-linux.h;h=657a679e23486e0e8e319d3cc10dd8f8a7c635f4;hp=f094d80ab714fb2c6a43bdeee79822d67d909dad;hb=d2d7fa53c18f1fc3fb89f3fe20df9b39986bde72;hpb=a4f4fdd7c9e46a50bc33ecef44d9f06036580ad4 diff --git a/os-linux.h b/os-linux.h index f094d80a..657a679e 100644 --- a/os-linux.h +++ b/os-linux.h @@ -19,7 +19,13 @@ #define FIO_HAVE_IOSCHED_SWITCH #define FIO_HAVE_ODIRECT #define FIO_HAVE_HUGETLB + +/* + * Only for x86 currently + */ +#if defined(__i386__) #define FIO_HAVE_SYSLET +#endif #define OS_MAP_ANON (MAP_ANONYMOUS) @@ -74,6 +80,7 @@ static inline int vmsplice(int fd, const struct iovec *iov, #define SPLICE_DEF_SIZE (64*1024) +#ifdef FIO_HAVE_SYSLET /* * syslet stuff */ @@ -101,6 +108,7 @@ static inline long umem_add(unsigned long *uptr, unsigned long inc) { return syscall(__NR_umem_add, uptr, inc); } +#endif /* FIO_HAVE_SYSLET */ enum { IOPRIO_WHO_PROCESS = 1,