diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2025-03-05 02:00:19 +0300 |
---|---|---|
committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2025-03-10 07:30:17 +0300 |
commit | 382094a41c706bf9d990a224d5d4d34c02a21f15 (patch) | |
tree | bece58e01ded8ac85888e4e1d831897118efdcda /tools/perf/scripts/python/parallel-perf.py | |
parent | ff99d5b6a246715f2257123cdf6c4a29cb33aa78 (diff) | |
download | linux-382094a41c706bf9d990a224d5d4d34c02a21f15.tar.xz |
powerpc: Fix 'intra_function_call not a direct call' warning
The following build warning have been reported:
arch/powerpc/kvm/book3s_hv_rmhandlers.o: warning: objtool: .text+0xe84: intra_function_call not a direct call
arch/powerpc/kernel/switch.o: warning: objtool: .text+0x4: intra_function_call not a direct call
This happens due to commit bb7f054f4de2 ("objtool/powerpc: Add support
for decoding all types of uncond branches") because that commit decodes
'bl .+4' as a normal instruction because that instruction is used by
clang instead of 'bcl 20,31,+.4' for relocatable code.
The solution is simply to remove the ANNOTATE_INTRA_FUNCTION_CALL
annotation now that the instruction is not seen as a function call
anymore.
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Closes: https://lore.kernel.org/all/8c4c3fc2-2bd7-4148-af68-2f504d6119e0@linux.ibm.com
Fixes: bb7f054f4de2 ("objtool/powerpc: Add support for decoding all types of uncond branches")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Tested-By: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/88876fb4e412203452e57d1037a1341cf15ccc7b.1741128981.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions