syslet: syscall still needs void * cast
authorJens Axboe <jens.axboe@oracle.com>
Thu, 22 Feb 2007 13:08:13 +0000 (14:08 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 22 Feb 2007 13:08:13 +0000 (14:08 +0100)
It avoids the long -> structure pointer cast warning.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os-linux.h

index eb60034cc7d4fad59816925c382b090bdf50a918..b147d4f3b340c0fd2bb5f352b469beb97e6b57e7 100644 (file)
@@ -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