sh: Fix up signal_64 cast warnings.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 29 Sep 2008 10:44:40 +0000 (19:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 29 Sep 2008 10:44:40 +0000 (19:44 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/signal_64.c

index 0582ae4739ba000f33cb09d31d757b890a496db3..ce3e851dffcbca6906f85ebbbfca80421469d461 100644 (file)
@@ -563,7 +563,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
                        (DEREF_REG_PR | NEFF_MASK) : DEREF_REG_PR;
 
                if (__copy_to_user(frame->retcode,
-                       (unsigned long long)sa_default_restorer & (~1), 16) != 0)
+                       (void *)((unsigned long)sa_default_restorer & (~1)), 16) != 0)
                        goto give_sigsegv;
 
                /* Cohere the trampoline with the I-cache. */
@@ -681,7 +681,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
                        (DEREF_REG_PR | NEFF_MASK) : DEREF_REG_PR;
 
                if (__copy_to_user(frame->retcode,
-                       (unsigned long long)sa_default_rt_restorer & (~1), 16) != 0)
+                       (void *)((unsigned long)sa_default_rt_restorer & (~1)), 16) != 0)
                        goto give_sigsegv;
 
                flush_icache_range(DEREF_REG_PR-1, DEREF_REG_PR-1+15);