Files
linux/arch/powerpc/kernel
Christophe Leroy 382094a41c 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 bb7f054f4d ("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: bb7f054f4d ("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
2025-03-10 10:00:17 +05:30
..
2024-05-08 00:21:30 +10:00
2021-12-09 22:41:21 +11:00
2023-10-01 23:09:02 +11:00
2024-09-05 22:25:36 +10:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2024-06-28 22:28:47 +10:00
2022-09-26 23:00:14 +10:00
2024-12-19 14:21:08 +05:30
2020-12-04 01:01:09 +11:00
2024-11-07 14:25:15 -08:00
2022-09-26 23:00:14 +10:00
2025-02-26 21:15:08 +05:30
2021-12-09 22:41:21 +11:00
2024-10-29 23:01:52 +11:00
2023-10-10 13:35:55 -06:00
2022-05-08 22:15:40 +10:00
2025-02-26 21:15:09 +05:30
2022-09-26 22:47:37 +10:00
2024-10-29 23:01:52 +11:00
2025-02-26 21:15:09 +05:30
2021-12-09 22:41:21 +11:00