[PATCH] fix wrong cast in unwind_special()
Helge Deller <[email protected]> Sun, 29 Jul 2007 19:01:46 +0200
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
fix wrong cast in unwind_special(): arch/parisc/kernel/unwind.c: In function `unwind_special': arch/parisc/kernel/unwind.c:213: warning: initialization makes pointer from integer without a cast Signed-off-by: Helge Deller <[email protected]> diff --git a/arch/parisc/kernel/unwind.c b/arch/parisc/kernel/unwind.c index cf780cb..395433a 100644 --- a/arch/parisc/kernel/unwind.c +++ b/arch/parisc/kernel/unwind.c @@ -210,7 +210,7 @@ static int unwind_init(void) static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int frame_size) { void handle_interruption(int, struct pt_regs *); - static unsigned long *hi = (unsigned long)&handle_interruption; + static unsigned long *hi = (unsigned long *)&handle_interruption; if (pc == get_func_addr(hi)) { struct pt_regs *regs = (struct pt_regs *)(info->sp - frame_size - PT_SZ_ALGN);