From 0b6a32ff62183fa742f1f16abecebe17ba31f2b4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Feb 2018 12:38:15 +0000 Subject: [PATCH] Fix license warnings --- 4.15.2/examples/Makefile | 4 ++-- 4.15.2/examples/hello-1.c | 2 ++ 4.15.2/examples/hello-2.c | 2 ++ 4.15.2/examples/hello-3.c | 2 ++ 4.15.2/examples/procfs1.c | 2 ++ 4.15.2/examples/procfs2.c | 2 ++ 4.15.2/examples/procfs3.c | 2 ++ 4.15.2/examples/sleep.c | 2 ++ 4.15.2/examples/start.c | 2 ++ 4.15.2/examples/stop.c | 2 ++ 10 files changed, 20 insertions(+), 2 deletions(-) diff --git a/4.15.2/examples/Makefile b/4.15.2/examples/Makefile index fff6966..a0506f3 100644 --- a/4.15.2/examples/Makefile +++ b/4.15.2/examples/Makefile @@ -3,8 +3,8 @@ obj-m += hello-2.o obj-m += hello-3.o obj-m += hello-4.o obj-m += hello-5.o -obj-m += startstop.o -startstop-objs := start.o stop.o +obj-m += start.o +obj-m += stop.o obj-m += chardev.o obj-m += procfs1.o obj-m += procfs2.o diff --git a/4.15.2/examples/hello-1.c b/4.15.2/examples/hello-1.c index ea4007c..a989332 100644 --- a/4.15.2/examples/hello-1.c +++ b/4.15.2/examples/hello-1.c @@ -18,3 +18,5 @@ void cleanup_module(void) { pr_info("Goodbye world 1.\n"); } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/hello-2.c b/4.15.2/examples/hello-2.c index c99618b..a4fc049 100644 --- a/4.15.2/examples/hello-2.c +++ b/4.15.2/examples/hello-2.c @@ -19,3 +19,5 @@ static void __exit hello_2_exit(void) module_init(hello_2_init); module_exit(hello_2_exit); + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/hello-3.c b/4.15.2/examples/hello-3.c index 0da8ed9..6e095c0 100644 --- a/4.15.2/examples/hello-3.c +++ b/4.15.2/examples/hello-3.c @@ -20,3 +20,5 @@ static void __exit hello_3_exit(void) module_init(hello_3_init); module_exit(hello_3_exit); + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/procfs1.c b/4.15.2/examples/procfs1.c index 69b2a90..9b1eccb 100644 --- a/4.15.2/examples/procfs1.c +++ b/4.15.2/examples/procfs1.c @@ -48,3 +48,5 @@ void cleanup_module() proc_remove(Our_Proc_File); pr_info("/proc/%s removed\n", procfs_name); } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/procfs2.c b/4.15.2/examples/procfs2.c index f3bc2ec..c1d5daf 100644 --- a/4.15.2/examples/procfs2.c +++ b/4.15.2/examples/procfs2.c @@ -96,3 +96,5 @@ void cleanup_module() proc_remove(Our_Proc_File); pr_info("/proc/%s removed\n", PROCFS_NAME); } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/procfs3.c b/4.15.2/examples/procfs3.c index b5a8780..6332118 100644 --- a/4.15.2/examples/procfs3.c +++ b/4.15.2/examples/procfs3.c @@ -81,3 +81,5 @@ void cleanup_module() remove_proc_entry(PROCFS_ENTRY_FILENAME, NULL); pr_debug("/proc/%s removed\n", PROCFS_ENTRY_FILENAME); } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/sleep.c b/4.15.2/examples/sleep.c index b4b16ae..64192e3 100644 --- a/4.15.2/examples/sleep.c +++ b/4.15.2/examples/sleep.c @@ -263,3 +263,5 @@ void cleanup_module() remove_proc_entry(PROC_ENTRY_FILENAME, NULL); pr_debug("/proc/%s removed\n", PROC_ENTRY_FILENAME); } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/start.c b/4.15.2/examples/start.c index 8307ac4..4aac9bf 100644 --- a/4.15.2/examples/start.c +++ b/4.15.2/examples/start.c @@ -10,3 +10,5 @@ int init_module(void) pr_info("Hello, world - this is the kernel speaking\n"); return 0; } + +MODULE_LICENSE("GPL"); diff --git a/4.15.2/examples/stop.c b/4.15.2/examples/stop.c index 9995bb4..2b36e6a 100644 --- a/4.15.2/examples/stop.c +++ b/4.15.2/examples/stop.c @@ -9,3 +9,5 @@ void cleanup_module() { pr_info("Short is the life of a kernel module\n"); } + +MODULE_LICENSE("GPL");