summaryrefslogtreecommitdiffstats
path: root/testsuite/module-playground/mod-loop-j.c
blob: facc81f437637287101a0c4f9b63d95cc944e1d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/init.h>
#include <linux/module.h>
#include <linux/printk.h>

#include "mod-loop.h"

static int __init test_module_init(void)
{
	printJ();
	printH();
	printK();

	return 0;
}
module_init(test_module_init);

void printJ(void)
{
	pr_warn("Hello, world J\n");
}
EXPORT_SYMBOL(printJ);

MODULE_AUTHOR("Lucas De Marchi <lucas.demarchi@intel.com>");
MODULE_LICENSE("LGPL");