linux-stable/arch
Arnd Bergmann 30c797c85d ARM: 9303/1: kprobes: avoid missing-declaration warnings
[ Upstream commit 1b9c3ddcec ]

checker_stack_use_t32strd() and kprobe_handler() can be made static since
they are not used from other files, while coverage_start_registers()
and __kprobes_test_case() are used from assembler code, and just need
a declaration to avoid a warning with the global definition.

arch/arm/probes/kprobes/checkers-common.c:43:18: error: no previous prototype for 'checker_stack_use_t32strd'
arch/arm/probes/kprobes/core.c:236:16: error: no previous prototype for 'kprobe_handler'
arch/arm/probes/kprobes/test-core.c:723:10: error: no previous prototype for 'coverage_start_registers'
arch/arm/probes/kprobes/test-core.c:918:14: error: no previous prototype for '__kprobes_test_case_start'
arch/arm/probes/kprobes/test-core.c:952:14: error: no previous prototype for '__kprobes_test_case_end_16'
arch/arm/probes/kprobes/test-core.c:967:14: error: no previous prototype for '__kprobes_test_case_end_32'

Fixes: 6624cf651f ("ARM: kprobes: collects stack consumption for store instructions")
Fixes: 454f3e132d ("ARM/kprobes: Remove jprobe arm implementation")
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 11:45:03 +02:00
..
alpha init: Remove check_bugs() leftovers 2023-08-08 19:49:18 +02:00
arc arc: iounmap() arg is volatile 2022-11-03 23:52:30 +09:00
arm ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-08-11 11:45:03 +02:00
arm64 arm64: Add missing Set/Way CMO encodings 2023-06-28 10:15:30 +02:00
c6x
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:49:45 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:49:45 +01:00
ia64 treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
m68k m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
microblaze exit: Add and use make_task_dead. 2023-02-06 07:49:45 +01:00
mips mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
nds32 exit: Add and use make_task_dead. 2023-02-06 07:49:45 +01:00
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:39:57 +02:00
openrisc openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-17 11:13:19 +02:00
parisc init: Remove check_bugs() leftovers 2023-08-08 19:49:18 +02:00
powerpc treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
riscv riscv: Bump COMMAND_LINE_SIZE value to 1024 2023-04-05 11:15:36 +02:00
s390 treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
sh sh/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
sparc sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
um um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:18 +02:00
unicore32
x86 treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
xtensa init: Remove check_bugs() leftovers 2023-08-08 19:49:18 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00