Skip to contentSkip to conversation

powerpc/64: Fix unannotated intra-function call warning

PATCH Applied Sathvika Vasireddy 4 participants 4 messages Feb 17, 2023 – Feb 20, 2023 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/kernel/head_64.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kernel/head_64.S +2 -1
index 3a7266fa8a18..1febb56ebaeb 100644
@@ -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
 
 /*
Signature · 1 line
2.31.1
Tested-by on v1 1/1
#1 lore raw

Hi all,

Quoted 38 lines · On Fri, 17 Feb 2023 10:02:26 +0530 Sathvika Vasireddy <[email protected]> wrote:

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.

---
 arch/powerpc/kernel/head_64.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kernel/head_64.S +2 -1
index 3a7266fa8a18..1febb56ebaeb 100644
@@ -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
 
 /*
Signature · 1 line
2.31.1

That at least makes the warning go away for me.

Fixes 58f24eea5278 ("powerpc/64s: Refactor initialisation after prom")
Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
In reply to Sathvika Vasireddy
Quoted 9 lines · Sathvika Vasireddy

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.

Signature · 1 line
Josh
#3 lore raw
In reply to Sathvika Vasireddy
Quoted 8 lines · Sathvika Vasireddy

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.

[...]

Applied to powerpc/next.

[1/1] powerpc/64: Fix unannotated intra-function call warning

      https://git.kernel.org/powerpc/c/38d73b671a817328334f2a70a23fed4d1f4a952c

cheers