From: Lucas De Marchi Date: Mon, 29 Apr 2024 21:19:12 +0000 (-0500) Subject: testsuite: Fix warnings due to -Wmissing-prototypes X-Git-Tag: v33~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93f58b81311efc4817c75a9abba6ad60dd840ea0;p=thirdparty%2Fkmod.git testsuite: Fix warnings due to -Wmissing-prototypes /testsuite/module-playground/mod-foo-b.c:13:6: warning: no previous prototype for ‘print_fooB’ [-Wmissing-prototypes] 13 | void print_fooB(void) | ^~~~~~~~~~ /testsuite/module-playground/mod-foo-a.c:13:6: warning: no previous prototype for ‘print_fooA’ [-Wmissing-prototypes] 13 | void print_fooA(void) | ^~~~~~~~~~ /testsuite/module-playground/mod-foo-c.c:13:6: warning: no previous prototype for ‘print_fooC’ [-Wmissing-prototypes] 13 | void print_fooC(void) | ^~~~~~~~~~ /testsuite/module-playground/mod-fake-scsi-mod.c:15:6: warning: no previous prototype for ‘dummy_export’ [-Wmissing-prototypes] 15 | void dummy_export(void) | ^~~~~~~~~~~~ Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/module-playground/mod-fake-scsi-mod.c b/testsuite/module-playground/mod-fake-scsi-mod.c index 916a04d3..f335b6ff 100644 --- a/testsuite/module-playground/mod-fake-scsi-mod.c +++ b/testsuite/module-playground/mod-fake-scsi-mod.c @@ -1,6 +1,8 @@ #include #include +void dummy_export(void); + static int __init test_module_init(void) { return 0; diff --git a/testsuite/module-playground/mod-foo-a.c b/testsuite/module-playground/mod-foo-a.c index bc65f66d..4eeeb0b2 100644 --- a/testsuite/module-playground/mod-foo-a.c +++ b/testsuite/module-playground/mod-foo-a.c @@ -4,6 +4,8 @@ #include #include +void print_fooA(void); + static int __init foo_init(void) { return 0; diff --git a/testsuite/module-playground/mod-foo-b.c b/testsuite/module-playground/mod-foo-b.c index 09079f6b..0c92b1b2 100644 --- a/testsuite/module-playground/mod-foo-b.c +++ b/testsuite/module-playground/mod-foo-b.c @@ -4,6 +4,8 @@ #include #include +void print_fooB(void); + static int __init foo_init(void) { return 0; diff --git a/testsuite/module-playground/mod-foo-c.c b/testsuite/module-playground/mod-foo-c.c index 3afd35dc..a8917c8b 100644 --- a/testsuite/module-playground/mod-foo-c.c +++ b/testsuite/module-playground/mod-foo-c.c @@ -4,6 +4,8 @@ #include #include +void print_fooC(void); + static int __init foo_init(void) { return 0;