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@gmail.com>
Tested-by: Arnaud Lacombe <lacombar@gmail.com>
Acked-by: Wu Zhangjin <wuzhangjin@gmail.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: John Reiser <jreiser@BitWagon.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

authored by John Reiser and committed by Steven Rostedt e63233f7 15664125

+1 -1
+1 -1
scripts/recordmcount.h
··· 119 120 static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) 121 { 122 - rp->r_info = ELF_R_INFO(sym, type); 123 } 124 static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO; 125
··· 119 120 static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) 121 { 122 + rp->r_info = _w(ELF_R_INFO(sym, type)); 123 } 124 static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO; 125