aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2024-04-29 16:19:12 -0500
committerLucas De Marchi <lucas.de.marchi@gmail.com>2024-04-29 16:20:30 -0500
commit93f58b81311efc4817c75a9abba6ad60dd840ea0 (patch)
treec4457d44058000ddacd4620bb6e549698140bec6
parente4130a46dd315310eed37c6bb59ca047e849dd43 (diff)
downloadkmod-93f58b81311efc4817c75a9abba6ad60dd840ea0.tar.gz
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 <lucas.de.marchi@gmail.com>
-rw-r--r--testsuite/module-playground/mod-fake-scsi-mod.c2
-rw-r--r--testsuite/module-playground/mod-foo-a.c2
-rw-r--r--testsuite/module-playground/mod-foo-b.c2
-rw-r--r--testsuite/module-playground/mod-foo-c.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/module-playground/mod-fake-scsi-mod.c b/testsuite/module-playground/mod-fake-scsi-mod.c
index 916a04d..f335b6f 100644
--- a/testsuite/module-playground/mod-fake-scsi-mod.c
+++ b/testsuite/module-playground/mod-fake-scsi-mod.c
@@ -1,6 +1,8 @@
#include <linux/init.h>
#include <linux/module.h>
+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 bc65f66..4eeeb0b 100644
--- a/testsuite/module-playground/mod-foo-a.c
+++ b/testsuite/module-playground/mod-foo-a.c
@@ -4,6 +4,8 @@
#include <linux/module.h>
#include <linux/printk.h>
+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 09079f6..0c92b1b 100644
--- a/testsuite/module-playground/mod-foo-b.c
+++ b/testsuite/module-playground/mod-foo-b.c
@@ -4,6 +4,8 @@
#include <linux/module.h>
#include <linux/printk.h>
+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 3afd35d..a8917c8 100644
--- a/testsuite/module-playground/mod-foo-c.c
+++ b/testsuite/module-playground/mod-foo-c.c
@@ -4,6 +4,8 @@
#include <linux/module.h>
#include <linux/printk.h>
+void print_fooC(void);
+
static int __init foo_init(void)
{
return 0;