* [patch] kernel/hrtimer.c sparse warning fix
@ 2006-01-16 9:59 Ingo Molnar
0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2006-01-16 9:59 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Thomas Gleixner, linux-kernel
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>
----
kernel/hrtimer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: linux/kernel/hrtimer.c
===================================================================
--- linux.orig/kernel/hrtimer.c
+++ 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-16 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-16 9:59 [patch] kernel/hrtimer.c sparse warning fix Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox