Skip to content

Commit 38d73b6

Browse files
sathvika-vmpe
authored andcommitted
powerpc/64: Fix unannotated intra-function call warning
objtool throws the following warning: arch/powerpc/kernel/head_64.o: warning: objtool: .text+0x6128: unannotated intra-function call Fix the warning by annotating start_initialization_book3s symbol with the SYM_FUNC_START_LOCAL and SYM_FUNC_END macros. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Sathvika Vasireddy <[email protected]> Fixes: 58f24ee ("powerpc/64s: Refactor initialisation after prom") Suggested-by: Josh Poimboeuf <[email protected]> Tested-by: Stephen Rothwell <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3c2ce49 commit 38d73b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/kernel/head_64.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ SYM_FUNC_START_LOCAL(__mmu_off)
472472
b . /* prevent speculative execution */
473473
SYM_FUNC_END(__mmu_off)
474474

475-
start_initialization_book3s:
475+
SYM_FUNC_START_LOCAL(start_initialization_book3s)
476476
mflr r25
477477

478478
/* Setup some critical 970 SPRs before switching MMU off */
@@ -494,6 +494,7 @@ start_initialization_book3s:
494494

495495
mtlr r25
496496
blr
497+
SYM_FUNC_END(start_initialization_book3s)
497498
#endif
498499

499500
/*

0 commit comments

Comments
 (0)