[PATCH] lib/ucs2_string: add MODULE_LICENSE()
From: Randy Dunlap
Date: Thu Jun 07 2018 - 12:26:10 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Fix missing MODULE_LICENSE() warning in lib/ucs2_string.c:
WARNING: modpost: missing MODULE_LICENSE() in lib/ucs2_string.o
see include/linux/module.h for more information
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Matthew Garrett <matthew.garrett@xxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---
Found in linux-next but applies to current mainline.
lib/ucs2_string.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-next-20180607.orig/lib/ucs2_string.c
+++ linux-next-20180607/lib/ucs2_string.c
@@ -112,3 +112,5 @@ ucs2_as_utf8(u8 *dest, const ucs2_char_t
return j;
}
EXPORT_SYMBOL(ucs2_as_utf8);
+
+MODULE_LICENSE("GPL v2");