Skip to content

Commit 6035e7e

Browse files
sathvika-vmpe
authored andcommitted
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 <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
1 parent b72c066 commit 6035e7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/powerpc/kexec/relocate_32.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Author: Suzuki Poulose <suzuki@in.ibm.com>
99
*/
1010

11+
#include <linux/objtool.h>
1112
#include <asm/reg.h>
1213
#include <asm/page.h>
1314
#include <asm/mmu.h>
@@ -349,6 +350,7 @@ write_utlb:
349350
cmpwi r10, PPC47x_TLB0_4K
350351
bne 0f
351352
li r10, 0x1000 /* r10 = 4k */
353+
ANNOTATE_INTRA_FUNCTION_CALL
352354
bl 1f
353355

354356
0:

0 commit comments

Comments
 (0)