[PATCH 1/5] crypto: deflate - Rename to generic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rename deflate -> deflate_generic and add the default priority of 100.

Signed-off-by: Jan Glauber <jglauber@xxxxxxxxxx>
---
 crypto/Makefile                         | 2 +-
 crypto/{deflate.c => deflate_generic.c} | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
 rename crypto/{deflate.c => deflate_generic.c} (98%)

diff --git a/crypto/Makefile b/crypto/Makefile
index 6d1d40eeb964..351c7212aff8 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -119,7 +119,7 @@ obj-$(CONFIG_CRYPTO_SPECK) += speck.o
 obj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o
 obj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o
 obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o
-obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o
+obj-$(CONFIG_CRYPTO_DEFLATE) += deflate_generic.o
 obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
 obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o
 obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o
diff --git a/crypto/deflate.c b/crypto/deflate_generic.c
similarity index 98%
rename from crypto/deflate.c
rename to crypto/deflate_generic.c
index 94ec3b36a8e8..66bff5614195 100644
--- a/crypto/deflate.c
+++ b/crypto/deflate_generic.c
@@ -279,6 +279,8 @@ static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src,
 
 static struct crypto_alg alg = {
 	.cra_name		= "deflate",
+	.cra_driver_name        = "deflate-generic",
+	.cra_priority           = 100,
 	.cra_flags		= CRYPTO_ALG_TYPE_COMPRESS,
 	.cra_ctxsize		= sizeof(struct deflate_ctx),
 	.cra_module		= THIS_MODULE,
@@ -341,3 +343,4 @@ MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Deflate Compression Algorithm for IPCOMP");
 MODULE_AUTHOR("James Morris <jmorris@xxxxxxxxxxxxxxxx>");
 MODULE_ALIAS_CRYPTO("deflate");
+MODULE_ALIAS_CRYPTO("deflate-generic");
-- 
2.17.1




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux