Skip to content

Commit c755238

Browse files
rddunlapRussell King (Oracle)
authored andcommitted
ARM: 9099/1: crypto: rename 'mod_init' & 'mod_exit' functions to be module-specific
Rename module_init & module_exit functions that are named "mod_init" and "mod_exit" so that they are unique in both the System.map file and in initcall_debug output instead of showing up as almost anonymous "mod_init". This is helpful for debugging and in determining how long certain module_init calls take to execute. Signed-off-by: Randy Dunlap <[email protected]> Cc: Jason A. Donenfeld <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent e73f0f0 commit c755238

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm/crypto/curve25519-glue.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static struct kpp_alg curve25519_alg = {
112112
.max_size = curve25519_max_size,
113113
};
114114

115-
static int __init mod_init(void)
115+
static int __init arm_curve25519_init(void)
116116
{
117117
if (elf_hwcap & HWCAP_NEON) {
118118
static_branch_enable(&have_neon);
@@ -122,14 +122,14 @@ static int __init mod_init(void)
122122
return 0;
123123
}
124124

125-
static void __exit mod_exit(void)
125+
static void __exit arm_curve25519_exit(void)
126126
{
127127
if (IS_REACHABLE(CONFIG_CRYPTO_KPP) && elf_hwcap & HWCAP_NEON)
128128
crypto_unregister_kpp(&curve25519_alg);
129129
}
130130

131-
module_init(mod_init);
132-
module_exit(mod_exit);
131+
module_init(arm_curve25519_init);
132+
module_exit(arm_curve25519_exit);
133133

134134
MODULE_ALIAS_CRYPTO("curve25519");
135135
MODULE_ALIAS_CRYPTO("curve25519-neon");

0 commit comments

Comments
 (0)