Corrections in Documentation/block/ioprio.txt
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 23 Aug 2007 08:43:07 +0000 (10:43 +0200)
committerJens Axboe <axboe@carl.home.kernel.dk>
Wed, 10 Oct 2007 07:25:57 +0000 (09:25 +0200)
The newer glibc does not allow system calls to be made via _syscallN()
wrapper. They have to be made through syscall(). The ionice code used
the older interface. Correcting it to use syscall.

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Documentation/block/ioprio.txt

index 1b930ef5a079a9f9dcbceca52851e6c14cd722ee..35e516b0b8a9935b91f2c15ab56685b111f1a1d1 100644 (file)
@@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int);
 #error "Unsupported arch"
 #endif
 
-_syscall3(int, ioprio_set, int, which, int, who, int, ioprio);
-_syscall2(int, ioprio_get, int, which, int, who);
+static inline int ioprio_set(int which, int who, int ioprio)
+{
+       return syscall(__NR_ioprio_set, which, who, ioprio);
+}
+
+static inline int ioprio_get(int which, int who)
+{
+       return syscall(__NR_ioprio_get, which, who);
+}
 
 enum {
        IOPRIO_CLASS_NONE,