Guest User

3casts-9.patch

a guest
Apr 13th, 2015
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -u -p a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c
  2. --- a/arch/sh/mm/cache-sh5.c
  3. +++ b/arch/sh/mm/cache-sh5.c
  4. @@ -74,9 +74,9 @@ static void sh64_icache_inv_kernel_range
  5.      * the addresses lie in the kernel superpage. */
  6.  
  7.     unsigned long long ullend, addr, aligned_start;
  8. -   aligned_start = (unsigned long long)(signed long long)(signed long) start;
  9. +   aligned_start = start;
  10.     addr = L1_CACHE_ALIGN(aligned_start);
  11. -   ullend = (unsigned long long) (signed long long) (signed long) end;
  12. +   ullend = end;
  13.  
  14.     while (addr <= ullend) {
  15.         __asm__ __volatile__ ("icbi %0, 0" : : "r" (addr));
  16. diff -u -p a/arch/sh/kernel/signal_64.c b/arch/sh/kernel/signal_64.c
  17. --- a/arch/sh/kernel/signal_64.c
  18. +++ b/arch/sh/kernel/signal_64.c
  19. @@ -452,8 +452,8 @@ static int setup_frame(struct ksignal *k
  20.             through both 2nd and 3rd arguments.
  21.          */
  22.  
  23. -   regs->regs[REG_ARG2] = (unsigned long long)(unsigned long)(signed long)&frame->sc;
  24. -   regs->regs[REG_ARG3] = (unsigned long long)(unsigned long)(signed long)&frame->sc;
  25. +   regs->regs[REG_ARG2] = &frame->sc;
  26. +   regs->regs[REG_ARG3] = &frame->sc;
  27.  
  28.     regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler);
  29.  
  30. @@ -543,8 +543,8 @@ static int setup_rt_frame(struct ksignal
  31.      */
  32.     regs->regs[REG_SP] = neff_sign_extend((unsigned long)frame);
  33.     regs->regs[REG_ARG1] = signal; /* Arg for signal handler */
  34. -   regs->regs[REG_ARG2] = (unsigned long long)(unsigned long)(signed long)&frame->info;
  35. -   regs->regs[REG_ARG3] = (unsigned long long)(unsigned long)(signed long)&frame->uc.uc_mcontext;
  36. +   regs->regs[REG_ARG2] = &frame->info;
  37. +   regs->regs[REG_ARG3] = &frame->uc.uc_mcontext;
  38.     regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler);
  39.  
  40.     set_fs(USER_DS);
  41. diff -u -p a/arch/mips/netlogic/xlr/setup.c b/arch/mips/netlogic/xlr/setup.c
  42. --- a/arch/mips/netlogic/xlr/setup.c
  43. +++ b/arch/mips/netlogic/xlr/setup.c
  44. @@ -182,9 +182,9 @@ void __init prom_init(void)
  45.  #endif
  46.  
  47.     /* truncate to 32 bit and sign extend all args */
  48. -   argv = (int *)(long)(int)fw_arg1;
  49. -   envp = (int *)(long)(int)fw_arg2;
  50. -   prom_infop = (struct psb_info *)(long)(int)fw_arg3;
  51. +   argv = fw_arg1;
  52. +   envp = fw_arg2;
  53. +   prom_infop = fw_arg3;
  54.  
  55.     nlm_prom_info = *prom_infop;
  56.     nlm_init_node();
RAW Paste Data