crypto: lib/chacha - restore ability to remove modules
authorEric Biggers <ebiggers@google.com>
Fri, 18 Apr 2025 03:59:09 +0000 (20:59 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 19 Apr 2025 03:18:28 +0000 (11:18 +0800)
Though the module_exit functions are now no-ops, they should still be
defined, since otherwise the modules become unremovable.

Fixes: 08820553f33a ("crypto: arm/chacha - remove the redundant skcipher algorithms")
Fixes: 8c28abede16c ("crypto: arm64/chacha - remove the skcipher algorithms")
Fixes: f7915484c020 ("crypto: powerpc/chacha - remove the skcipher algorithms")
Fixes: ceba0eda8313 ("crypto: riscv/chacha - implement library instead of skcipher")
Fixes: 632ab0978f08 ("crypto: x86/chacha - remove the skcipher algorithms")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/chacha-glue.c
arch/arm64/crypto/chacha-neon-glue.c
arch/powerpc/crypto/chacha-p10-glue.c
arch/riscv/crypto/chacha-riscv64-glue.c
arch/x86/crypto/chacha_glue.c

index 3a5c75c95d43b69b456a600b39e71dd616844ef3..12afb40cf1ff445cc8f5a008c0c9f100cfa457ad 100644 (file)
@@ -124,6 +124,11 @@ static int __init chacha_arm_mod_init(void)
 }
 arch_initcall(chacha_arm_mod_init);
 
+static void __exit chacha_arm_mod_exit(void)
+{
+}
+module_exit(chacha_arm_mod_exit);
+
 MODULE_DESCRIPTION("ChaCha and HChaCha functions (ARM optimized)");
 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
 MODULE_LICENSE("GPL v2");
index a0c336b284027eb487a808819e207ff979c8a8f0..14a2836eff611ee1ea0221684701da65cd1d3115 100644 (file)
@@ -106,6 +106,11 @@ static int __init chacha_simd_mod_init(void)
 }
 arch_initcall(chacha_simd_mod_init);
 
+static void __exit chacha_simd_mod_exit(void)
+{
+}
+module_exit(chacha_simd_mod_exit);
+
 MODULE_DESCRIPTION("ChaCha and HChaCha functions (ARM64 optimized)");
 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
 MODULE_LICENSE("GPL v2");
index 9982929573add3fd734a8df3dbb85d22b6cac193..351ed409f9b21fb31c5cb227a61f76bfd414ffd0 100644 (file)
@@ -89,6 +89,11 @@ static int __init chacha_p10_init(void)
 }
 arch_initcall(chacha_p10_init);
 
+static void __exit chacha_p10_exit(void)
+{
+}
+module_exit(chacha_p10_exit);
+
 MODULE_DESCRIPTION("ChaCha stream cipher (P10 accelerated)");
 MODULE_AUTHOR("Danny Tsen <dtsen@linux.ibm.com>");
 MODULE_LICENSE("GPL v2");
index ccaab0dea383ff81ad42e614b0ddfb6d518b2b34..afc4e3be3cac2f274e69dae61a593f01646d53a0 100644 (file)
@@ -64,6 +64,11 @@ static int __init riscv64_chacha_mod_init(void)
 }
 arch_initcall(riscv64_chacha_mod_init);
 
+static void __exit riscv64_chacha_mod_exit(void)
+{
+}
+module_exit(riscv64_chacha_mod_exit);
+
 MODULE_DESCRIPTION("ChaCha stream cipher (RISC-V optimized)");
 MODULE_AUTHOR("Jerry Shih <jerry.shih@sifive.com>");
 MODULE_LICENSE("GPL");
index fcc14c006bdeb0a75ce3e4b66d8e9f0a2c8a6f2f..59bf63c00072678e9d431e5896e61a5efee2fb95 100644 (file)
@@ -176,6 +176,11 @@ static int __init chacha_simd_mod_init(void)
 }
 arch_initcall(chacha_simd_mod_init);
 
+static void __exit chacha_simd_mod_exit(void)
+{
+}
+module_exit(chacha_simd_mod_exit);
+
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Martin Willi <martin@strongswan.org>");
 MODULE_DESCRIPTION("ChaCha and HChaCha functions (x86_64 optimized)");