diff options
Diffstat (limited to 'arch/powerpc/kernel/ftrace.c')
-rw-r--r-- | arch/powerpc/kernel/ftrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 1fb78561096a..9b27b293a922 100644 --- a/arch/powerpc/kernel/ftrace.c +++ b/arch/powerpc/kernel/ftrace.c | |||
@@ -174,7 +174,11 @@ __ftrace_make_nop(struct module *mod, | |||
174 | 174 | ||
175 | pr_devel(" %08x %08x\n", jmp[0], jmp[1]); | 175 | pr_devel(" %08x %08x\n", jmp[0], jmp[1]); |
176 | 176 | ||
177 | #ifdef __LITTLE_ENDIAN__ | ||
178 | ptr = ((unsigned long)jmp[1] << 32) + jmp[0]; | ||
179 | #else | ||
177 | ptr = ((unsigned long)jmp[0] << 32) + jmp[1]; | 180 | ptr = ((unsigned long)jmp[0] << 32) + jmp[1]; |
181 | #endif | ||
178 | 182 | ||
179 | /* This should match what was called */ | 183 | /* This should match what was called */ |
180 | if (ptr != ppc_function_entry((void *)addr)) { | 184 | if (ptr != ppc_function_entry((void *)addr)) { |