]> err.no Git - linux-2.6/commitdiff
[PATCH] kernel/hrtimer.c sparse warning fix
authorIngo Molnar <mingo@elte.hu>
Mon, 16 Jan 2006 09:59:41 +0000 (10:59 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 17 Jan 2006 07:21:12 +0000 (23:21 -0800)
fix the following sparse warning:

 kernel/hrtimer.c:665:34: warning: incorrect type in argument 2 (different address spaces)
 kernel/hrtimer.c:665:34:    expected void const *from
 kernel/hrtimer.c:665:34:    got struct timespec [noderef] *<noident><asn:1>
 kernel/hrtimer.c:664:2: warning: dereference of noderef expression

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/hrtimer.c

index f5ca61422331fb1b313eb34535a6e58d12c45b78..f1c4155b49ac140051538f12046cb553674657f9 100644 (file)
@@ -641,7 +641,8 @@ schedule_hrtimer_interruptible(struct hrtimer *timer,
 static long __sched
 nanosleep_restart(struct restart_block *restart, clockid_t clockid)
 {
-       struct timespec __user *rmtp, tu;
+       struct timespec __user *rmtp;
+       struct timespec tu;
        void *rfn_save = restart->fn;
        struct hrtimer timer;
        ktime_t rem;