Skip to content

Commit

Permalink
sh: Fix up signal_64 cast warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Sep 29, 2008
1 parent 88856d6 commit 091db04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sh/kernel/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 091db04

Please sign in to comment.