VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Chen Jun <chenjun102@huawei.com> 2021-02-22 13:58:40 +0000 committer: Steven Rostedt (VMware) <rostedt@goodmis.org> 2021-03-02 17:27:18 -0500 commit: 999340d51174ce4141dd723105d4cef872b13ee9 parent: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8
Commit Summary:
ftrace: Have recordmcount use w8 to read relp->r_info in arm64_is_fake_mcount
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index b9c2ee7ab43f..cce12e1971d8 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -438,7 +438,7 @@ static int arm_is_fake_mcount(Elf32_Rel const *rp)
 
 static int arm64_is_fake_mcount(Elf64_Rel const *rp)
 {
-	return ELF64_R_TYPE(w(rp->r_info)) != R_AARCH64_CALL26;
+	return ELF64_R_TYPE(w8(rp->r_info)) != R_AARCH64_CALL26;
 }
 
 /* 64-bit EM_MIPS has weird ELF64_Rela.r_info.