Commit 38d73b67 authored by Sathvika Vasireddy's avatar Sathvika Vasireddy Committed by Michael Ellerman
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarSathvika Vasireddy <sv@linux.ibm.com>
Fixes: 58f24eea ("powerpc/64s: Refactor initialisation after prom")
Suggested-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Tested-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230217043226.1020041-1-sv@linux.ibm.com
parent 3c2ce491
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -472,7 +472,7 @@ SYM_FUNC_START_LOCAL(__mmu_off)
	b	.	/* prevent speculative execution */
SYM_FUNC_END(__mmu_off)

start_initialization_book3s:
SYM_FUNC_START_LOCAL(start_initialization_book3s)
	mflr	r25

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

	mtlr	r25
	blr
SYM_FUNC_END(start_initialization_book3s)
#endif

/*