aboutsummaryrefslogtreecommitdiffstats
path: root/lib/livepatch/test_klp_callbacks_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/livepatch/test_klp_callbacks_mod.c')
-rw-r--r--lib/livepatch/test_klp_callbacks_mod.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/livepatch/test_klp_callbacks_mod.c b/lib/livepatch/test_klp_callbacks_mod.c
new file mode 100644
index 000000000000..8fbe645b1c2c
--- /dev/null
+++ b/lib/livepatch/test_klp_callbacks_mod.c
@@ -0,0 +1,24 @@
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (C) 2018 Joe Lawrence <joe.lawrence@redhat.com>
3
4#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
5
6#include <linux/module.h>
7#include <linux/kernel.h>
8
9static int test_klp_callbacks_mod_init(void)
10{
11 pr_info("%s\n", __func__);
12 return 0;
13}
14
15static void test_klp_callbacks_mod_exit(void)
16{
17 pr_info("%s\n", __func__);
18}
19
20module_init(test_klp_callbacks_mod_init);
21module_exit(test_klp_callbacks_mod_exit);
22MODULE_LICENSE("GPL");
23MODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
24MODULE_DESCRIPTION("Livepatch test: target module");