summaryrefslogtreecommitdiff
path: root/arch/arch-mips.h
diff options
context:
space:
mode:
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>2016-07-20 01:33:47 +0900
committerJens Axboe <axboe@fb.com>2016-07-19 15:45:49 -0600
commit1c764dbe756c883443ba84e58a61d666187382ac (patch)
tree05035522adb4eea25ea91299ea088ae6e5233c4d /arch/arch-mips.h
parenta4e1a86a0dc1b55ec342081aaba49448ee3a4bb4 (diff)
downloadfio-1c764dbe756c883443ba84e58a61d666187382ac.tar.gz
fio-1c764dbe756c883443ba84e58a61d666187382ac.tar.bz2
Add os/os-linux-syscall.h to separate syscall NR from arch headers
Linux syscall NR should be defined under os/ with ifdef(arch) switch rather than arch/ where headers are included not only by Linux but also all other supported OS that don't need these NR. (It'll get worse and worse if someone wants to add something similar under arch/ for other supported OS) Not sure if you like the way I separated these by adding os/os-linux-syscall.h, but doing something like #if FIO_OS is (Linux or Android) ... #endif in arch/arch-*.h doesn't work because arch headers are to be included prior to os/os-*.h. Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'arch/arch-mips.h')
-rw-r--r--arch/arch-mips.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arch-mips.h b/arch/arch-mips.h
index 0b781d1d..6f157fbb 100644
--- a/arch/arch-mips.h
+++ b/arch/arch-mips.h
@@ -3,21 +3,6 @@
#define FIO_ARCH (arch_mips)
-#ifndef __NR_ioprio_set
-#define __NR_ioprio_set 314
-#define __NR_ioprio_get 315
-#endif
-
-#ifndef __NR_fadvise64
-#define __NR_fadvise64 215
-#endif
-
-#ifndef __NR_sys_splice
-#define __NR_sys_splice 263
-#define __NR_sys_tee 265
-#define __NR_sys_vmsplice 266
-#endif
-
#define read_barrier() __asm__ __volatile__("": : :"memory")
#define write_barrier() __asm__ __volatile__("": : :"memory")
#define nop __asm__ __volatile__("": : :"memory")