diff mbox series

arm: kprobes: fix an old-style function definition

Message ID 20210327083020.1922590-1-liushixin2@huawei.com (mailing list archive)
State New, archived
Headers show
Series arm: kprobes: fix an old-style function definition | expand

Commit Message

Liu Shixin March 27, 2021, 8:30 a.m. UTC
I got a warning when compile kernel:

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

Fix it by add parameter 'void'.

Signed-off-by: Shixin Liu <liushixin2@huawei.com>
---
 arch/arm/probes/kprobes/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c
index a9653117ca0d..e513d8a46776 100644
--- a/arch/arm/probes/kprobes/core.c
+++ b/arch/arm/probes/kprobes/core.c
@@ -462,7 +462,7 @@  static struct undef_hook kprobes_arm_break_hook = {
 
 #endif /* !CONFIG_THUMB2_KERNEL */
 
-int __init arch_init_kprobes()
+int __init arch_init_kprobes(void)
 {
 	arm_probes_decode_init();
 #ifdef CONFIG_THUMB2_KERNEL