Skip to content

Commit 3cbe18b

Browse files
Jeff Johnsonherbertx
authored andcommitted
crypto: lib - add missing MODULE_DESCRIPTION() macros
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>
1 parent 70d57ff commit 3cbe18b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/crypto/sha1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ void sha1_init(__u32 *buf)
137137
}
138138
EXPORT_SYMBOL(sha1_init);
139139

140+
MODULE_DESCRIPTION("SHA-1 Algorithm");
140141
MODULE_LICENSE("GPL");

lib/crypto/sha256.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,5 @@ void sha256(const u8 *data, unsigned int len, u8 *out)
165165
}
166166
EXPORT_SYMBOL(sha256);
167167

168+
MODULE_DESCRIPTION("SHA-256 Algorithm");
168169
MODULE_LICENSE("GPL");

lib/crypto/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,5 @@ void __crypto_xor(u8 *dst, const u8 *src1, const u8 *src2, unsigned int len)
8585
}
8686
EXPORT_SYMBOL_GPL(__crypto_xor);
8787

88+
MODULE_DESCRIPTION("Crypto library utility functions");
8889
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)