From: Ingo Molnar Date: Mon, 16 Jan 2006 09:59:41 +0000 (+0100) Subject: [PATCH] kernel/hrtimer.c sparse warning fix X-Git-Tag: firefly_0821_release~38769 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea13dbc89caecd982500894d4238766a6bd3c8f4;p=firefly-linux-kernel-4.4.55.git [PATCH] 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] * kernel/hrtimer.c:664:2: warning: dereference of noderef expression Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds --- diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index f5ca61422331..f1c4155b49ac 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -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;