Commit-ID: e63233f75a1a6bfa97ffb52a20cc6801a4c63fb2 Gitweb: http://git.kernel.org/tip/e63233f75a1a6bfa97ffb52a20cc6801a4c63fb2 Author: John Reiser <jreiser@xxxxxxxxxxxx> AuthorDate: Mon, 22 Nov 2010 19:41:44 -0800 Committer: Steven Rostedt <rostedt@xxxxxxxxxxx> CommitDate: Thu, 2 Dec 2010 10:37:48 -0500 ftrace: Have recordmcount honor endianness in fn_ELF_R_INFO It looks to me like the change which introduced "virtual functions" forgot about cross-platform endianness. Thank you to Arnaud for supplying before+after data files do_mounts*.o. This fixes a MIPS build failure triggered by recordmcount. Reported-by: Arnaud Lacombe <lacombar@xxxxxxxxx> Tested-by: Arnaud Lacombe <lacombar@xxxxxxxxx> Acked-by: Wu Zhangjin <wuzhangjin@xxxxxxxxx> Acked-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: John Reiser <jreiser@xxxxxxxxxxxx> Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx> --- scripts/recordmcount.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 58e933a..3966717 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h @@ -119,7 +119,7 @@ static uint_t (*Elf_r_sym)(Elf_Rel const *rp) = fn_ELF_R_SYM; static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) { - rp->r_info = ELF_R_INFO(sym, type); + rp->r_info = _w(ELF_R_INFO(sym, type)); } static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html