Linux Kernels

PKCS#7: Add MODULE_LICENSE() to test module

This change “PKCS#7: Add MODULE_LICENSE() to test module” (commit 772111a) in Linux kernel is authored by David Howells <dhowells [at] redhat.com> on Thu Aug 13 02:51:33 2015 +0100.

Description of "PKCS#7: Add MODULE_LICENSE() to test module"

The change “PKCS#7: Add MODULE_LICENSE() to test module” introduces changes as follows.

PKCS#7: Add MODULE_LICENSE() to test module

Add a MODULE_LICENSE() line to the PKCS#7 test key module to fix this
warning:

        WARNING: modpost: missing MODULE_LICENSE() in
        crypto/asymmetric_keys/pkcs7_test_key.o

Whilst we're at it, also add a module description.

Reported-by: James Morris <jmorris@namei.org>
Signed-off-by: David Howells <dhowells@redhat.com>

Linux kernel releases containing commit 772111a

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "PKCS#7: Add MODULE_LICENSE() to test module"

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 crypto/asymmetric_keys/pkcs7_key_type.c | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/crypto/asymmetric_keys/pkcs7_key_type.c b/crypto/asymmetric_keys/pkcs7_key_type.c
index 10d34dbd00b9..e2d0edbbc71a 100644
--- a/crypto/asymmetric_keys/pkcs7_key_type.c
+++ b/crypto/asymmetric_keys/pkcs7_key_type.c
@@ -20,6 +20,9 @@
 #include <keys/system_keyring.h>
 #include "pkcs7_parser.h"
 
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("PKCS#7 testing key type");
+
 static unsigned pkcs7_usage;
 module_param_named(usage, pkcs7_usage, uint, S_IWUSR | S_IRUGO);
 MODULE_PARM_DESC(pkcs7_usage,

The commit for this change in Linux stable tree is 772111a (patch).

Last modified: 2020/01/11 09:49