From: Anton Blanchard Date: Wed, 17 Sep 2014 07:07:04 +0000 (+1000) Subject: powerpc/ftrace: simplify prepare_ftrace_return X-Git-Tag: omap-for-v3.19/fixes-rc1~123^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3c18725a0eb7ea2458e9ae3b7e5a477f52e361f;p=pandora-kernel.git powerpc/ftrace: simplify prepare_ftrace_return Instead of passing in the stack address of the link register to be modified, just pass in the old value and return the new value and rely on ftrace_graph_caller to do the modification. This removes the exception handling around the stack update - it isn't needed and we weren't consistent about it. Later on we would do an unprotected modification: if (!ftrace_graph_entry(&trace)) { *parent = old; Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed