Skip to contentSkip to conversation

crypto: lib - add module license to libsha1

PATCH In review Eric Biggers 2 participants 2 messages Jul 19, 2022 – Jul 20, 2022

Subsystems (2)
lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

PATCH 1/1 crypto: lib - add module license to libsha1

From: Eric Biggers <[email protected]>

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

Fixes ec8f7f4821d5 ("crypto: lib - make the sha1 library optional")
---
 lib/crypto/sha1.c | 3 +++
 1 file changed, 3 insertions(+)
lib/crypto/sha1.c +3 -0
index 0494766fc574ec..1aebe7be9401bd 100644
@@ -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

Signature · 1 line
2.37.0
maintainer
#1 lore raw
Quoted 10 lines · Eric Biggers

From: Eric Biggers <[email protected]>

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

Fixes ec8f7f4821d5 ("crypto: lib - make the sha1 library optional")
---
 lib/crypto/sha1.c | 3 +++
 1 file changed, 3 insertions(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt