Commit:     3317fedba9446465082bcc6ce1232451ad1d51ce
Parent:     db47d475371bc85dd122112e957669cbbcc70dee
Author:     Dhaval Giani <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 23 10:43:07 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 09:25:57 2007 +0200

    Corrections in Documentation/block/ioprio.txt
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
 Documentation/block/ioprio.txt |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Documentation/block/ioprio.txt b/Documentation/block/ioprio.txt
index 1b930ef..35e516b 100644
--- a/Documentation/block/ioprio.txt
+++ b/Documentation/block/ioprio.txt
@@ -86,8 +86,15 @@ extern int sys_ioprio_get(int, int);
 #error "Unsupported arch"
-_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 {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to