crypto: Fix crc32c soft dependency
Subsystems (2)
PATCH 1/1 crypto: Fix crc32c soft dependency
I don't think it makes sense for a module to have a soft dependency on itself. This seems quite cyclic by nature and I can't see what purpose it could serve.
OTOH libcrc32c calls crypto_alloc_shash("crc32c", 0, 0) so it pretty much assumes that some incarnation of the "crc32c" hash algorithm has been loaded. Therefore it makes sense to have the soft dependency there (as crc-t10dif does.)
--- crypto/crc32c_generic.c | 1 - lib/libcrc32c.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
crypto/crc32c_generic.c +0 -1
@@ -172,4 +172,3 @@ MODULE_DESCRIPTION("CRC32c (Castagnoli)MODULE_LICENSE ("GPL" );MODULE_ALIAS_CRYPTO ("crc32c" );MODULE_ALIAS_CRYPTO ("crc32c-generic" ); -MODULE_SOFTDEP ("pre: crc32c" );
lib/libcrc32c.c +1 -0
@@ -74,3 +74,4 @@ module_exit(libcrc32c_mod_fini);MODULE_AUTHOR ("Clay Haapala <[email protected]>" );MODULE_DESCRIPTION ("CRC32c (Castagnoli) calculations" );MODULE_LICENSE ("GPL" ); +MODULE_SOFTDEP ("pre: crc32c" );
Signature · 2 lines
Jean Delvare SUSE L3 Support
Herbert Xu
maintainerQuoted 9 lines · Jean Delvare
I don't think it makes sense for a module to have a soft dependency on itself. This seems quite cyclic by nature and I can't see what purpose it could serve.
OTOH libcrc32c calls
crypto_alloc_shash("crc32c", 0, 0)so it pretty much assumes that some incarnation of the "crc32c" hash algorithm has been loaded. Therefore it makes sense to have the soft dependency there (as crc-t10dif does.)
Quoted 4 lines
Signed-off-by Jean Delvare <[email protected]>Cc Tim Chen <[email protected]>Cc Herbert Xu <[email protected]>Cc "David S. Miller" <[email protected]>
Well caught. 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
Quoted 10 lines · Herbert Xu
Quoted 9 lines · Jean Delvare
I don't think it makes sense for a module to have a soft dependency on itself. This seems quite cyclic by nature and I can't see what purpose it could serve.
OTOH libcrc32c calls
crypto_alloc_shash("crc32c", 0, 0)so it pretty much assumes that some incarnation of the "crc32c" hash algorithm has been loaded. Therefore it makes sense to have the soft dependency there (as crc-t10dif does.)
Quoted 6 lines
Quoted 4 lines
Signed-off-by Jean Delvare <[email protected]>Cc Tim Chen <[email protected]>Cc Herbert Xu <[email protected]>Cc "David S. Miller" <[email protected]>Well caught. Patch applied, thanks!
Thanks for the fix.
Tim