mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 11:55:07 +07:00
09c434b8a0
Add SPDX license identifiers to all files which: - Have no license information of any form - Have MODULE_LICENCE("GPL*") inside which was used in the initial scan/conversion to ignore the file These files fall under the project license, GPL v2 only. The resulting SPDX license identifier is: GPL-2.0-only Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
794 B
C
35 lines
794 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* 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");
|