crypto: lib/poly1305 - restore ability to remove modules
authorEric Biggers <ebiggers@google.com>
Fri, 18 Apr 2025 04:00:17 +0000 (21:00 -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: 1f81c58279c7 ("crypto: arm/poly1305 - remove redundant shash algorithm")
Fixes: f4b1a73aec5c ("crypto: arm64/poly1305 - remove redundant shash algorithm")
Fixes: 378a337ab40f ("crypto: powerpc/poly1305 - implement library instead of shash")
Fixes: 21969da642a2 ("crypto: x86/poly1305 - remove redundant shash algorithm")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/poly1305-glue.c
arch/arm64/crypto/poly1305-glue.c
arch/powerpc/crypto/poly1305-p10-glue.c
arch/x86/crypto/poly1305_glue.c

index 6d6998b3ec7e35e13737f740256cb330a8484f0a..42d0ebde1ae1519395ae473e5a0ee06695f3266c 100644 (file)
@@ -116,5 +116,10 @@ static int __init arm_poly1305_mod_init(void)
 }
 arch_initcall(arm_poly1305_mod_init);
 
+static void __exit arm_poly1305_mod_exit(void)
+{
+}
+module_exit(arm_poly1305_mod_exit);
+
 MODULE_DESCRIPTION("Accelerated Poly1305 transform for ARM");
 MODULE_LICENSE("GPL v2");
index cb152ceac14a1e7e2f8cdb0e8947091cc4eb4cae..906970dd5373234f3b53cd597c66c5df09961c9d 100644 (file)
@@ -107,5 +107,10 @@ static int __init neon_poly1305_mod_init(void)
 }
 arch_initcall(neon_poly1305_mod_init);
 
+static void __exit neon_poly1305_mod_exit(void)
+{
+}
+module_exit(neon_poly1305_mod_exit);
+
 MODULE_DESCRIPTION("Poly1305 authenticator (ARM64 optimized)");
 MODULE_LICENSE("GPL v2");
index 40d296d52c23ec5bcedf5935cf00a1e9f26f4c9d..00617f4c58e6979575db0bc1d947b5d4745922ac 100644 (file)
@@ -127,6 +127,11 @@ static int __init poly1305_p10_init(void)
 }
 arch_initcall(poly1305_p10_init);
 
+static void __exit poly1305_p10_exit(void)
+{
+}
+module_exit(poly1305_p10_exit);
+
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Danny Tsen <dtsen@linux.ibm.com>");
 MODULE_DESCRIPTION("Optimized Poly1305 for P10");
index a0fc543a0d688357c1e0ede3e2545f7fb8efea1d..cff35ca5822a883d73212baaed51e393ad2f6284 100644 (file)
@@ -208,6 +208,11 @@ static int __init poly1305_simd_mod_init(void)
 }
 arch_initcall(poly1305_simd_mod_init);
 
+static void __exit poly1305_simd_mod_exit(void)
+{
+}
+module_exit(poly1305_simd_mod_exit);
+
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");
 MODULE_DESCRIPTION("Poly1305 authenticator");