From: Michael Ellerman Date: Tue, 17 Jun 2014 06:15:35 +0000 (+1000) Subject: powerpc/ftrace: Fix nop of modules on 64bit LE (ABIv2) X-Git-Tag: omap-for-v3.16/fixes-rc4~57^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84e0d69c26b4d739214974d6ad6baf23f510580;p=pandora-kernel.git powerpc/ftrace: Fix nop of modules on 64bit LE (ABIv2) There is a bug in the handling of the function entry when we are nopping out a branch from a module in ftrace. We compare the result of module_trampoline_target() with the value of ppc_function_entry(), and expect them to be true. But they never will be. module_trampoline_target() will always return the global entry point of the function, whereas ppc_function_entry() will always return the local. Fix it by using the newly added ppc_global_function_entry(). Signed-off-by: Michael Ellerman Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed