1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2017 Joe Lawrence <joe.lawrence@redhat.com>
7 * livepatch-callbacks-mod.c - (un)patching callbacks demo support module
13 * Simple module to demonstrate livepatch (un)patching callbacks.
19 * This module is not intended to be standalone. See the "Usage"
20 * section of livepatch-callbacks-demo.c.
23 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
25 #include <linux/module.h>
26 #include <linux/kernel.h>
28 static int livepatch_callbacks_mod_init(void)
30 pr_info("%s\n", __func__);
34 static void livepatch_callbacks_mod_exit(void)
36 pr_info("%s\n", __func__);
39 module_init(livepatch_callbacks_mod_init);
40 module_exit(livepatch_callbacks_mod_exit);
41 MODULE_LICENSE("GPL");