lib: asn1_decoder - add MODULE_LICENSE("GPL")
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Fri, 29 Apr 2016 14:48:08 +0000 (17:48 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 3 May 2016 08:10:12 +0000 (16:10 +0800)
A kernel taint results when loading the rsa_generic module:

root@(none):~# modprobe rsa_generic
asn1_decoder: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint

"Tainting" of the kernel is (usually) a way of indicating that
a proprietary module has been inserted, which is not the case here.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/asn1_decoder.c

index 2b3f46c049d458a590d080823b344da3b3229f7c..b1ffcab7211a51687dc3978c21e1ef190dfc43f0 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
+#include <linux/module.h>
 #include <linux/asn1_decoder.h>
 #include <linux/asn1_ber_bytecode.h>
 
@@ -504,3 +505,5 @@ error:
        return -EBADMSG;
 }
 EXPORT_SYMBOL_GPL(asn1_ber_decoder);
+
+MODULE_LICENSE("GPL");