projects/linux·commit ea13dbc8

[PATCH] kernel/hrtimer.c sparse warning fix

ea13dbc8 · Ingo Molnar <[email protected]> · 2006-01-16 10:59:41 +01:00

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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
ea13dbc89caecd982500894d4238766a6bd3c8f4
Parents
d669af9d

Changes

1 files changed · +2 −1

FileStatusAddDelContent
kernel/hrtimer.cmodified+2−1View file

kernel/hrtimer.c

View file
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index f5ca614..f1c4155 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;