@@ -122,8 +122,13 @@ static int __init chacha_arm_mod_init(void)
}
return 0;
}
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");
@@ -104,8 +104,13 @@ static int __init chacha_simd_mod_init(void)
static_branch_enable(&have_neon);
return 0;
}
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");
@@ -87,8 +87,13 @@ static int __init chacha_p10_init(void)
static_branch_enable(&have_p10);
return 0;
}
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");
@@ -62,8 +62,13 @@ static int __init riscv64_chacha_mod_init(void)
static_branch_enable(&use_zvkb);
return 0;
}
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");
@@ -174,8 +174,13 @@ static int __init chacha_simd_mod_init(void)
}
return 0;
}
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)");