summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-02-21 07:02:44 -0700
committerJens Axboe <axboe@kernel.dk>2022-02-21 07:02:44 -0700
commitb4c9210f57f307512df02be630854d504cad2657 (patch)
tree2cdccc1671480ddeee2e1153d2954408a9a0ac56
parentfd1d6cfafb4e9fb4d826175247527c7d1ca4ffc1 (diff)
parente05652f22ee5b5bcc78f69a09ed7a7ba883a928a (diff)
downloadliburing-b4c9210f57f307512df02be630854d504cad2657.tar.gz
liburing-b4c9210f57f307512df02be630854d504cad2657.tar.bz2
Merge branch 'fix_madvise_syscall' of https://github.com/Spasi/liburing
* 'fix_madvise_syscall' of https://github.com/Spasi/liburing: Fix madvise syscall wrapper
-rw-r--r--src/arch/x86/syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/syscall.h b/src/arch/x86/syscall.h
index c4ae24e..2efaef0 100644
--- a/src/arch/x86/syscall.h
+++ b/src/arch/x86/syscall.h
@@ -154,7 +154,7 @@ static inline int __sys_munmap(void *addr, size_t length)
static inline int __sys_madvise(void *addr, size_t length, int advice)
{
- return (int) __do_syscall2(__NR_madvise, addr, length);
+ return (int) __do_syscall3(__NR_madvise, addr, length, advice);
}
static inline int __sys_getrlimit(int resource, struct rlimit *rlim)