X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os-linux.h;h=549694a468081b31208486dbf4605191dd054fa5;hp=eb60034cc7d4fad59816925c382b090bdf50a918;hb=7756b0d046ef74c32df134c8b716237cc5e16bad;hpb=145dad6d3e1ae4bf44dd49eea9d0c025500b97d0 diff --git a/os-linux.h b/os-linux.h index eb60034c..549694a4 100644 --- a/os-linux.h +++ b/os-linux.h @@ -91,7 +91,7 @@ struct async_head_user; static inline struct syslet_uatom * async_exec(struct syslet_uatom *atom, struct async_head_user *ahu) { - return syscall(__NR_async_exec, atom, ahu); + return (void *) syscall(__NR_async_exec, atom, ahu); } static inline long @@ -102,9 +102,9 @@ async_wait(unsigned long min_wait_events, unsigned long user_ring_idx, user_ring_idx, ahu); } -static inline long async_thread(void) +static inline long async_thread(void *event, struct async_head_user *ahu) { - return syscall(__NR_async_thread); + return syscall(__NR_async_thread, event, ahu); } static inline long umem_add(unsigned long *uptr, unsigned long inc)