X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos.h;h=2e4764e18f4ab6c021c3171827bd7323b52ef8bf;hp=dd704647932a0ad7f9b1cf22a3860e8ee758b62d;hb=09164e5a3b3820a9ab7aaf2abc3be2579ae06a1c;hpb=859088d3939ce6eccfc59a0d5559922e29e58a47 diff --git a/os/os.h b/os/os.h index dd704647..2e4764e1 100644 --- a/os/os.h +++ b/os/os.h @@ -68,22 +68,11 @@ typedef struct aiocb os_aiocb_t; #define OS_MSG_DONTWAIT MSG_DONTWAIT #endif -#ifndef FIO_HAVE_FADVISE -static inline int posix_fadvise(int fd, int off, int len, int advice) -{ - (void)fd; - (void)off; - (void)len; - (void)advice; - return 0; -} - #ifndef POSIX_FADV_DONTNEED #define POSIX_FADV_DONTNEED (0) #define POSIX_FADV_SEQUENTIAL (0) #define POSIX_FADV_RANDOM (0) #endif -#endif /* FIO_HAVE_FADVISE */ #ifndef FIO_HAVE_CPU_AFFINITY #define fio_setaffinity(pid, mask) (0)