mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
93f58b8131
/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>
23 lines
377 B
C
23 lines
377 B
C
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/printk.h>
|
|
|
|
void print_fooC(void);
|
|
|
|
static int __init foo_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
module_init(foo_init);
|
|
|
|
void print_fooC(void)
|
|
{
|
|
pr_warn("fooC\n");
|
|
}
|
|
EXPORT_SYMBOL(print_fooC);
|
|
|
|
MODULE_AUTHOR("Lucas De Marchi <lucas.demarchi@intel.com>");
|
|
MODULE_LICENSE("LGPL");
|