Skip to content

Commit 8afffce

Browse files
sathvika-vmpe
authored andcommitted
powerpc/85xx: Fix unannotated intra-function call warning
objtool throws the following warning: arch/powerpc/kernel/head_85xx.o: warning: objtool: .head.text+0x1a6c: unannotated intra-function call Fix the warning by annotating KernelSPE symbol with SYM_FUNC_START_LOCAL and SYM_FUNC_END macros. 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://lore.kernel.org/r/20230128124138.1066176-1-sv@linux.ibm.com
1 parent f12cd06 commit 8afffce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/powerpc/kernel/head_85xx.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ _GLOBAL(load_up_spe)
864864
* SPE unavailable trap from kernel - print a message, but let
865865
* the task use SPE in the kernel until it returns to user mode.
866866
*/
867-
KernelSPE:
867+
SYM_FUNC_START_LOCAL(KernelSPE)
868868
lwz r3,_MSR(r1)
869869
oris r3,r3,MSR_SPE@h
870870
stw r3,_MSR(r1) /* enable use of SPE after return */
@@ -881,6 +881,7 @@ KernelSPE:
881881
#endif
882882
.align 4,0
883883

884+
SYM_FUNC_END(KernelSPE)
884885
#endif /* CONFIG_SPE */
885886

886887
/*

0 commit comments

Comments
 (0)