From: Michael Ellerman Date: Tue, 17 Jun 2014 06:15:33 +0000 (+1000) Subject: powerpc/ftrace: Fix typo in mask of opcode X-Git-Tag: omap-for-v3.17/soc-cleanup~50^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfc382a19a2478768ef09d1c745b116e4fca9b4e;p=pandora-kernel.git powerpc/ftrace: Fix typo in mask of opcode In commit 24a1bdc35, "Fix ABIv2 issues with __ftrace_make_call", Anton changed the logic that checks for the expected code sequence when patching a module. We missed the typo in the mask, 0xffff00000 should be 0xffff0000, which has the effect of making the test always true. That makes it impossible to ftrace against modules, eg: Unexpected call sequence: 48000008 e8410018 WARNING: at ../kernel/trace/ftrace.c:1638 ftrace failed to modify [] rng_dev_open+0x1c/0x70 [rng_core] Reported-by: David Binderman Signed-off-by: Michael Ellerman Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed