]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Oct 2021 14:30:09 +0000 (15:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 16:38:11 +0000 (17:38 +0100)
commitec08eceae9b897e68c381a4cc29f753bb878ecf9
tree0572225b7440b216c4e8f65127227f8b5a2c2577
parent4126bca85a041fd4ed61834e0096c857685db025
ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype

commit 1f323127cab086e4fd618981b1e5edc396eaf0f4 upstream.

With extra warnings enabled, gcc complains about this function
definition:

arch/arm/probes/kprobes/core.c: In function 'arch_init_kprobes':
arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition]
  465 | int __init arch_init_kprobes()

Link: https://lore.kernel.org/all/20201027093057.c685a14b386acacb3c449e3d@kernel.org/
Fixes: 24ba613c9d6c ("ARM kprobes: core code")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/probes/kprobes/core.c