powerpc/32: Curb objtool unannotated intra-function call warning
PATCH 1/1 powerpc/32: Curb objtool unannotated intra-function call warning
objtool throws the following warning:arch/powerpc/kexec/relocate_32.o: warning: objtool: .text+0x2bc: unannotated intra-function call
Fix this warning by annotating intra-function call, using ANNOTATE_INTRA_FUNCTION_CALL macro, to indicate that the branch target is valid.
Reported-by kernel test robot <[email protected]>
Signed-off-by Sathvika Vasireddy <[email protected]>
--- arch/powerpc/kexec/relocate_32.S | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/kexec/relocate_32.S +2 -0
@@ -8,6 +8,7 @@ * Author: Suzuki Poulose <[email protected]> */ +#include <linux/objtool.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/mmu.h>
@@ -349,6 +350,7 @@ write_utlb: cmpwi r10, PPC47x_TLB0_4K bne 0f li r10, 0x1000 /* r10 = 4k */ + ANNOTATE_INTRA_FUNCTION_CALL bl 1f 0:
Signature · 1 line
2.31.1
Michael Ellerman
AppliedQuoted 8 lines · Sathvika Vasireddy
objtool throws the following warning:
arch/powerpc/kexec/relocate_32.o: warning: objtool: .text+0x2bc: unannotated intra-function callFix this warning by annotating intra-function call, using
ANNOTATE_INTRA_FUNCTION_CALLmacro, to indicate that the branch target is valid.[...]
Applied to powerpc/next.
[1/1] powerpc/32: Curb objtool unannotated intra-function call warning
https://git.kernel.org/powerpc/c/6035e7e35482653d6d93f35f01e1a320573d58f0
cheers