summaryrefslogtreecommitdiffstats
path: root/crypto/crc32_generic.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-01-29 11:20:17 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-01-30 15:11:22 +0100
commita7c58ac06224b83dba93eaafde88535d5da60aef (patch)
treeb71357859f08f57f93c62130adf4debd1c42b87b /crypto/crc32_generic.c
parentcrypto: mcryptd - Fix load failure (diff)
downloadlinux-a7c58ac06224b83dba93eaafde88535d5da60aef.tar.xz
linux-a7c58ac06224b83dba93eaafde88535d5da60aef.zip
crypto: crc32 - Rename generic implementation
The generic crc32 implementation is currently called crc32. This is a problem because it clashes with the lib implementation of crc32. This patch renames the crypto crc32 to crc32_generic so that it is consistent with crc32c. An alias for the driver is also added. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/crc32_generic.c (renamed from crypto/crc32.c)3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/crc32.c b/crypto/crc32_generic.c
index 187ded28cb0b..aa2a25fc7482 100644
--- a/crypto/crc32.c
+++ b/crypto/crc32_generic.c
@@ -131,7 +131,7 @@ static struct shash_alg alg = {
.digestsize = CHKSUM_DIGEST_SIZE,
.base = {
.cra_name = "crc32",
- .cra_driver_name = "crc32-table",
+ .cra_driver_name = "crc32-generic",
.cra_priority = 100,
.cra_blocksize = CHKSUM_BLOCK_SIZE,
.cra_ctxsize = sizeof(u32),
@@ -157,3 +157,4 @@ MODULE_AUTHOR("Alexander Boyko <alexander_boyko@xyratex.com>");
MODULE_DESCRIPTION("CRC32 calculations wrapper for lib/crc32");
MODULE_LICENSE("GPL");
MODULE_ALIAS_CRYPTO("crc32");
+MODULE_ALIAS_CRYPTO("crc32-generic");