mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / lib / test_module.c
blob319b66f1ff61ecb39466f15a186838c0f0692950
1 /*
2 * This module emits "Hello, world" on printk when loaded.
4 * It is designed to be used for basic evaluation of the module loading
5 * subsystem (for example when validating module signing/verification). It
6 * lacks any extra dependencies, and will not normally be loaded by the
7 * system unless explicitly requested by name.
8 */
10 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
12 #include <linux/init.h>
13 #include <linux/module.h>
14 #include <linux/printk.h>
16 static int __init test_module_init(void)
18 pr_warn("Hello, world\n");
20 return 0;
23 module_init(test_module_init);
25 static void __exit test_module_exit(void)
27 pr_warn("Goodbye\n");
30 module_exit(test_module_exit);
32 MODULE_AUTHOR("Kees Cook <keescook@chromium.org>");
33 MODULE_LICENSE("GPL");