diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-06 17:44:28 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-06 17:44:28 +0800 |
commit | d083f580e5b940834a93ab741cdf064f0324dc0f (patch) | |
tree | d034075e47d68179d2f8bf7220d26bef0ba740d3 /lib/test_module.c | |
parent | 931f27c6e892fdfe98896055e0df7962e21969d9 (diff) | |
parent | 13ff50c85846338bb9820abd3933227b678dc086 (diff) |
Merge tag 'parse-val' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into asoc-core
regmap: Add parse_val() API
This is useful for generic code built on top of regmap dealing with
blocks of data.
Diffstat (limited to 'lib/test_module.c')
-rw-r--r-- | lib/test_module.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/test_module.c b/lib/test_module.c new file mode 100644 index 000000000000..319b66f1ff61 --- /dev/null +++ b/lib/test_module.c @@ -0,0 +1,33 @@ +/* + * This module emits "Hello, world" on printk when loaded. + * + * It is designed to be used for basic evaluation of the module loading + * subsystem (for example when validating module signing/verification). It + * lacks any extra dependencies, and will not normally be loaded by the + * system unless explicitly requested by name. + */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + +#include <linux/init.h> +#include <linux/module.h> +#include <linux/printk.h> + +static int __init test_module_init(void) +{ + pr_warn("Hello, world\n"); + + return 0; +} + +module_init(test_module_init); + +static void __exit test_module_exit(void) +{ + pr_warn("Goodbye\n"); +} + +module_exit(test_module_exit); + +MODULE_AUTHOR("Kees Cook <keescook@chromium.org>"); +MODULE_LICENSE("GPL"); |