X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=helpers.c;h=a0ee37044e8abdc418ac9f19fcca06509858485a;hp=dce967d39d6c4bc8f1e2b7cbf8410fdaa1aed093;hb=fd98fb689d5ad7e9977461e961fff3fdd37f9cb8;hpb=836fcc0fceb233ebcc41ee63b4ea5cae20b678a4 diff --git a/helpers.c b/helpers.c index dce967d3..a0ee3704 100644 --- a/helpers.c +++ b/helpers.c @@ -1,13 +1,6 @@ -#include #include -#include -#include -#include -#include -#include "compiler/compiler.h" -#include "arch/arch.h" -#include "os/os.h" +#include "helpers.h" #ifndef CONFIG_LINUX_FALLOCATE int fallocate(int fd, int mode, off_t offset, off_t len) @@ -32,7 +25,7 @@ int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags) } #endif -#ifndef CONFIG_FADVISE +#ifndef CONFIG_POSIX_FADVISE int posix_fadvise(int fd, off_t offset, off_t len, int advice) { return 0;