Commit ea13dbc89caecd982500894d4238766a6bd3c8f4

Authored by Ingo Molnar
Committed by Linus Torvalds
1 parent d669af9d5a

[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] *<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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -641,7 +641,8 @@
641 641 static long __sched
642 642 nanosleep_restart(struct restart_block *restart, clockid_t clockid)
643 643 {
644   - struct timespec __user *rmtp, tu;
  644 + struct timespec __user *rmtp;
  645 + struct timespec tu;
645 646 void *rfn_save = restart->fn;
646 647 struct hrtimer timer;
647 648 ktime_t rem;