Linux 5.4.79
[linux/fpc-iii.git] / samples / livepatch / livepatch-callbacks-mod.c
blob2a074f422a51d9c9173f088286d4ebe0077172cd
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2017 Joe Lawrence <joe.lawrence@redhat.com>
4 */
6 /*
7 * livepatch-callbacks-mod.c - (un)patching callbacks demo support module
10 * Purpose
11 * -------
13 * Simple module to demonstrate livepatch (un)patching callbacks.
16 * Usage
17 * -----
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__);
31 return 0;
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");