linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: lib - add module license to libsha1
@ 2022-07-19  3:04 Eric Biggers
  2022-07-20  7:28 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2022-07-19  3:04 UTC (permalink / raw)
  To: linux-crypto; +Cc: linux-kernel, Randy Dunlap

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: lib - add module license to libsha1
  2022-07-19  3:04 [PATCH] crypto: lib - add module license to libsha1 Eric Biggers
@ 2022-07-20  7:28 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2022-07-20  7:28 UTC (permalink / raw)
  To: Eric Biggers; +Cc: linux-crypto, linux-kernel, Randy Dunlap

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-20  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  3:04 [PATCH] crypto: lib - add module license to libsha1 Eric Biggers
2022-07-20  7:28 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).