powerpc/32: Curb objtool unannotated intra-function call warning
authorSathvika Vasireddy <sv@linux.ibm.com>
Thu, 15 Dec 2022 11:52:58 +0000 (17:22 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Mar 2024 11:20:28 +0000 (22:20 +1100)
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 <lkp@intel.com>
Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20221215115258.80810-1-sv@linux.ibm.com
arch/powerpc/kexec/relocate_32.S

index d9f0dd9b34ffbfcb9cc6274bed12dfa3886ebef1..104c9911f40611960b8d6b077553920f4cfb9d66 100644 (file)
@@ -8,6 +8,7 @@
  *             Author: Suzuki Poulose <suzuki@in.ibm.com>
  */
 
+#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: