summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-07-19 06:04:15 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-07-20 10:28:07 +0300
commited221835a7ae8d0c5d9967d70518d0f230b8e9c5 (patch)
tree01fbf93f08e1e64d91d64fa65937e0dff4abc85c /lib
parentec8f7f4821d5e70d71601519bc2325b311324a96 (diff)
downloadlinux-ed221835a7ae8d0c5d9967d70518d0f230b8e9c5.tar.xz
crypto: lib - add module license to libsha1
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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/sha1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/sha1.c b/lib/crypto/sha1.c
index 0494766fc574..1aebe7be9401 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");