Skip to contentSkip to conversation

kernel/hrtimer.c sparse warning fix

PATCH New Ingo Molnar 1 participant 1 message Jan 16, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/hrtimer.c sparse warning fix

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

----

 kernel/hrtimer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
kernel/hrtimer.c +2 -1
Index: linux/kernel/hrtimer.c
===================================================================
@@ -644,7 +644,8 @@ schedule_hrtimer_interruptible(struct hr
 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;