[parisc-linux] [PATCH] fix wrong cast in unwind_special()

Helge Deller deller at gmx.de
Sun Jul 29 11:01:46 MDT 2007


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 <deller at gmx.de>

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);



More information about the parisc-linux mailing list