sh64: Fix up PC casting in unaligned fixup notifier with 32bit ABI.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jan 2010 06:41:50 +0000 (15:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jan 2010 06:41:50 +0000 (15:41 +0900)
commit88ea1a445a84fcfbedb810c01e84d6711352bd82
tree0af28645ead1e1cf8b40e9d1cdef7d6670d855b0
parent3ef2932b8c1fc89408ef1fd4b1e1c2caabc7f07d
sh64: Fix up PC casting in unaligned fixup notifier with 32bit ABI.

Presently the build bails with the following:

  CC      arch/sh/mm/alignment.o
cc1: warnings being treated as errors
arch/sh/mm/alignment.c: In function 'unaligned_fixups_notify':
arch/sh/mm/alignment.c:69: warning: cast to pointer from integer of different size
arch/sh/mm/alignment.c:74: warning: cast to pointer from integer of different size
make[2]: *** [arch/sh/mm/alignment.o] Error 1

This is due to the fact that regs->pc is always 64-bit, while the pointer size
depends on the ABI. Wrapping through instruction_pointer() takes care of the
appropriate casting for both configurations.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/alignment.c