Skip to content

Commit

Permalink
[PATCH] kernel/hrtimer.c sparse warning fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jan 17, 2006
1 parent d669af9 commit ea13dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea13dbc

Please sign in to comment.