Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: lib/chacha - restore ability to remove modules

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>

authored by

Eric Biggers and committed by
Herbert Xu
8821d269 31b20bc2

+25
+5
arch/arm/crypto/chacha-glue.c
··· 124 124 } 125 125 arch_initcall(chacha_arm_mod_init); 126 126 127 + static void __exit chacha_arm_mod_exit(void) 128 + { 129 + } 130 + module_exit(chacha_arm_mod_exit); 131 + 127 132 MODULE_DESCRIPTION("ChaCha and HChaCha functions (ARM optimized)"); 128 133 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>"); 129 134 MODULE_LICENSE("GPL v2");
+5
arch/arm64/crypto/chacha-neon-glue.c
··· 106 106 } 107 107 arch_initcall(chacha_simd_mod_init); 108 108 109 + static void __exit chacha_simd_mod_exit(void) 110 + { 111 + } 112 + module_exit(chacha_simd_mod_exit); 113 + 109 114 MODULE_DESCRIPTION("ChaCha and HChaCha functions (ARM64 optimized)"); 110 115 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>"); 111 116 MODULE_LICENSE("GPL v2");
+5
arch/powerpc/crypto/chacha-p10-glue.c
··· 89 89 } 90 90 arch_initcall(chacha_p10_init); 91 91 92 + static void __exit chacha_p10_exit(void) 93 + { 94 + } 95 + module_exit(chacha_p10_exit); 96 + 92 97 MODULE_DESCRIPTION("ChaCha stream cipher (P10 accelerated)"); 93 98 MODULE_AUTHOR("Danny Tsen <dtsen@linux.ibm.com>"); 94 99 MODULE_LICENSE("GPL v2");
+5
arch/riscv/crypto/chacha-riscv64-glue.c
··· 64 64 } 65 65 arch_initcall(riscv64_chacha_mod_init); 66 66 67 + static void __exit riscv64_chacha_mod_exit(void) 68 + { 69 + } 70 + module_exit(riscv64_chacha_mod_exit); 71 + 67 72 MODULE_DESCRIPTION("ChaCha stream cipher (RISC-V optimized)"); 68 73 MODULE_AUTHOR("Jerry Shih <jerry.shih@sifive.com>"); 69 74 MODULE_LICENSE("GPL");
+5
arch/x86/crypto/chacha_glue.c
··· 176 176 } 177 177 arch_initcall(chacha_simd_mod_init); 178 178 179 + static void __exit chacha_simd_mod_exit(void) 180 + { 181 + } 182 + module_exit(chacha_simd_mod_exit); 183 + 179 184 MODULE_LICENSE("GPL"); 180 185 MODULE_AUTHOR("Martin Willi <martin@strongswan.org>"); 181 186 MODULE_DESCRIPTION("ChaCha and HChaCha functions (x86_64 optimized)");