[PARISC] Kill incorrect cast warning in unwinder
authorKyle McMartin <kyle@mcmartin.ca>
Thu, 18 Oct 2007 07:03:56 +0000 (00:03 -0700)
committerKyle McMartin <kyle@shortfin.cabal.ca>
Thu, 18 Oct 2007 07:59:04 +0000 (00:59 -0700)
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/kernel/unwind.c

index cf780cb3b916fab25aa79c9adda3819b7d5bd7ba..701b2d2d88823f55fb2d18a2c03c1e91b2b3f2a9 100644 (file)
@@ -209,8 +209,8 @@ 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;
+       extern void handle_interruption(int, struct pt_regs *);
+       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);