diff options
Diffstat (limited to 'arch/arm/include/asm/ftrace.h')
-rw-r--r-- | arch/arm/include/asm/ftrace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h index 4a56a2ee067c..f89515adac60 100644 --- a/arch/arm/include/asm/ftrace.h +++ b/arch/arm/include/asm/ftrace.h | |||
@@ -18,7 +18,8 @@ struct dyn_arch_ftrace { | |||
18 | 18 | ||
19 | static inline unsigned long ftrace_call_adjust(unsigned long addr) | 19 | static inline unsigned long ftrace_call_adjust(unsigned long addr) |
20 | { | 20 | { |
21 | return addr; | 21 | /* With Thumb-2, the recorded addresses have the lsb set */ |
22 | return addr & ~1; | ||
22 | } | 23 | } |
23 | 24 | ||
24 | extern void ftrace_caller_old(void); | 25 | extern void ftrace_caller_old(void); |