powerpc/ftrace: Use BRANCH_SET_LINK instead of value 1
To make it explicit, use BRANCH_SET_LINK instead of value 1 when calling create_branch(). Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/d57847063ac93660a5af620d4df1847f10edf61a.1652074503.git.christophe.leroy@csgroup.eu
This commit is contained in:
parent
ccf6607e45
commit
cf9df92a82
|
@ -45,7 +45,7 @@ ftrace_call_replace(unsigned long ip, unsigned long addr, int link)
|
|||
addr = ppc_function_entry((void *)addr);
|
||||
|
||||
/* if (link) set op to 'bl' else 'b' */
|
||||
create_branch(&op, (u32 *)ip, addr, link ? 1 : 0);
|
||||
create_branch(&op, (u32 *)ip, addr, link ? BRANCH_SET_LINK : 0);
|
||||
|
||||
return op;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue