]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: Fix warnings due to -Wmissing-prototypes
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 29 Apr 2024 21:19:12 +0000 (16:19 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 29 Apr 2024 21:20:30 +0000 (16:20 -0500)
/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>
testsuite/module-playground/mod-fake-scsi-mod.c
testsuite/module-playground/mod-foo-a.c
testsuite/module-playground/mod-foo-b.c
testsuite/module-playground/mod-foo-c.c

index 916a04d36a163750865feef19535abae0789fa3a..f335b6ff9cb4ce67342748a036ba069d4061c808 100644 (file)
@@ -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;
index bc65f66db712515e94e83b634e18027da42807ab..4eeeb0b20b4aa95dc0bb99f5264adbda4b04f1b7 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/module.h>
 #include <linux/printk.h>
 
+void print_fooA(void);
+
 static int __init foo_init(void)
 {
        return 0;
index 09079f6bba95d469e0693af7b57e93dc0a68a934..0c92b1b2d8225bac51881b51eb5281091ed9a9ef 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/module.h>
 #include <linux/printk.h>
 
+void print_fooB(void);
+
 static int __init foo_init(void)
 {
        return 0;
index 3afd35dcf494e08360bdbe6eb02c67d1d124e59e..a8917c8be6e381025db5d598dd948cb637b11356 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/module.h>
 #include <linux/printk.h>
 
+void print_fooC(void);
+
 static int __init foo_init(void)
 {
        return 0;