]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: lib - add missing MODULE_DESCRIPTION() macros
authorJeff Johnson <quic_jjohnson@quicinc.com>
Sun, 16 Jun 2024 06:14:57 +0000 (23:14 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Jun 2024 12:04:19 +0000 (22:04 +1000)
With ARCH=arm, make allmodconfig && make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/crypto/libsha256.o

Add the missing invocation of the MODULE_DESCRIPTION() macro to all
files which have a MODULE_LICENSE().

This includes sha1.c and utils.c which, although they did not produce
a warning with the arm allmodconfig configuration, may cause this
warning with other configurations.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/sha1.c
lib/crypto/sha256.c
lib/crypto/utils.c

index 1aebe7be9401bd5d2ca5e5b41a0237b24b7f299d..6d2922747cabbea0107413eebcde2f941fc04a58 100644 (file)
@@ -137,4 +137,5 @@ void sha1_init(__u32 *buf)
 }
 EXPORT_SYMBOL(sha1_init);
 
+MODULE_DESCRIPTION("SHA-1 Algorithm");
 MODULE_LICENSE("GPL");
index 3ac1ef8677db5d6adf171e9e014d7e97639c2ee9..3f42d203c7bca22fa94c3e3295ef34d6057ecd2b 100644 (file)
@@ -165,4 +165,5 @@ void sha256(const u8 *data, unsigned int len, u8 *out)
 }
 EXPORT_SYMBOL(sha256);
 
+MODULE_DESCRIPTION("SHA-256 Algorithm");
 MODULE_LICENSE("GPL");
index c852c7151b0a65c5afd990c880df5cd308f92f29..3733641414082e5fd4dc12b88ef7564b45b94bbb 100644 (file)
@@ -85,4 +85,5 @@ void __crypto_xor(u8 *dst, const u8 *src1, const u8 *src2, unsigned int len)
 }
 EXPORT_SYMBOL_GPL(__crypto_xor);
 
+MODULE_DESCRIPTION("Crypto library utility functions");
 MODULE_LICENSE("GPL");