summaryrefslogtreecommitdiffstats
path: root/testsuite/module-playground/mod-foo.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/module-playground/mod-foo.c')
-rw-r--r--testsuite/module-playground/mod-foo.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/module-playground/mod-foo.c b/testsuite/module-playground/mod-foo.c
new file mode 100644
index 0000000..8105608
--- /dev/null
+++ b/testsuite/module-playground/mod-foo.c
@@ -0,0 +1,23 @@
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/printk.h>
+
+void print_fooA(void);
+void print_fooB(void);
+void print_fooC(void);
+
+static int __init foo_init(void)
+{
+ print_fooA();
+ print_fooB();
+ print_fooC();
+
+ return 0;
+}
+
+module_init(foo_init);
+
+MODULE_AUTHOR("Lucas De Marchi <lucas.demarchi@intel.com>");
+MODULE_LICENSE("LGPL");