diff options
| author | Arnd Bergmann <[email protected]> | 2021-10-18 14:30:03 +0000 |
|---|---|---|
| committer | Russell King (Oracle) <[email protected]> | 2021-10-25 12:12:36 +0000 |
| commit | ae3d6978aa84f65376a790e23d3fb52fcc8346b2 (patch) | |
| tree | e901494772fee45cb5e0bab819cc98609a7d4e9e /scripts/gcc-plugins/structleak_plugin.c | |
| parent | ARM: 9144/1: forbid ftrace with clang and thumb2_kernel (diff) | |
| download | kernel-ae3d6978aa84f65376a790e23d3fb52fcc8346b2.tar.gz kernel-ae3d6978aa84f65376a790e23d3fb52fcc8346b2.zip | |
ARM: 9145/1: patch: fix BE32 compilation
On BE32 kernels, the __opcode_to_mem_thumb32() interface is intentionally
not defined, but it is referenced whenever runtime patching is enabled
for the kernel, which may be for ftrace, jump label, kprobes or kgdb:
arch/arm/kernel/patch.c: In function '__patch_text_real':
arch/arm/kernel/patch.c:94:32: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration]
94 | insn = __opcode_to_mem_thumb32(insn);
| ^~~~~~~~~~~~~~~~~~~~~~~
Since BE32 kernels never run Thumb2 code, we never end up using the
result of this call, so providing an extern declaration without
a definition makes it build correctly.
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions
