From: Aaro Koskinen Date: Fri, 17 Oct 2014 15:10:24 +0000 (+0300) Subject: MIPS: oprofile: Fix backtrace on 64-bit kernel X-Git-Tag: upstream/snapshot3+hdmi~4^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32472d9c79af7654775afd424e67779291fc9868;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git MIPS: oprofile: Fix backtrace on 64-bit kernel commit bbaf113a481b6ce32444c125807ad3618643ce57 upstream. Fix incorrect cast that always results in wrong address for the new frame on 64-bit kernels. Signed-off-by: Aaro Koskinen Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8110/ Signed-off-by: Ralf Baechle Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/mips/oprofile/backtrace.c b/arch/mips/oprofile/backtrace.c index 6854ed5..83a1dfd 100644 --- a/arch/mips/oprofile/backtrace.c +++ b/arch/mips/oprofile/backtrace.c @@ -92,7 +92,7 @@ static inline int unwind_user_frame(struct stackframe *old_frame, /* This marks the end of the previous function, which means we overran. */ break; - stack_size = (unsigned) stack_adjustment; + stack_size = (unsigned long) stack_adjustment; } else if (is_ra_save_ins(&ip)) { int ra_slot = ip.i_format.simmediate; if (ra_slot < 0)