浏览代码

sh: Fix up signal_64 cast warnings.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 年之前
父节点
当前提交
091db04559
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/sh/kernel/signal_64.c

+ 2 - 2
arch/sh/kernel/signal_64.c

@@ -563,7 +563,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
 			(DEREF_REG_PR | NEFF_MASK) : DEREF_REG_PR;
 			(DEREF_REG_PR | NEFF_MASK) : DEREF_REG_PR;
 
 
 		if (__copy_to_user(frame->retcode,
 		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;
 			goto give_sigsegv;
 
 
 		/* Cohere the trampoline with the I-cache. */
 		/* 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;
 			(DEREF_REG_PR | NEFF_MASK) : DEREF_REG_PR;
 
 
 		if (__copy_to_user(frame->retcode,
 		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;
 			goto give_sigsegv;
 
 
 		flush_icache_range(DEREF_REG_PR-1, DEREF_REG_PR-1+15);
 		flush_icache_range(DEREF_REG_PR-1, DEREF_REG_PR-1+15);