[PATCH] crypto: lib - add module license to libsha1

Eric Biggers posted 1 patch 3 years, 9 months ago
lib/crypto/sha1.c | 3 +++
1 file changed, 3 insertions(+)
[PATCH] crypto: lib - add module license to libsha1
Posted by Eric Biggers 3 years, 9 months ago
From: Eric Biggers <ebiggers@google.com>

libsha1 can be a module, so it needs a MODULE_LICENSE.

Fixes: ec8f7f4821d5 ("crypto: lib - make the sha1 library optional")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 lib/crypto/sha1.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/crypto/sha1.c b/lib/crypto/sha1.c
index 0494766fc574ec..1aebe7be9401bd 100644
--- a/lib/crypto/sha1.c
+++ b/lib/crypto/sha1.c
@@ -8,6 +8,7 @@
 
 #include <linux/kernel.h>
 #include <linux/export.h>
+#include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
 #include <crypto/sha1.h>
@@ -135,3 +136,5 @@ void sha1_init(__u32 *buf)
 	buf[4] = 0xc3d2e1f0;
 }
 EXPORT_SYMBOL(sha1_init);
+
+MODULE_LICENSE("GPL");

base-commit: ec8f7f4821d5e70d71601519bc2325b311324a96
-- 
2.37.0
Re: [PATCH] crypto: lib - add module license to libsha1
Posted by Herbert Xu 3 years, 9 months ago
On Tue, Jul 19, 2022 at 03:04:15AM +0000, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> libsha1 can be a module, so it needs a MODULE_LICENSE.
> 
> Fixes: ec8f7f4821d5 ("crypto: lib - make the sha1 library optional")
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  lib/crypto/sha1.c | 3 +++
>  1 file changed, 3 insertions(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt