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

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 <rdunlap@infradead.org>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

authored by

Randy Dunlap and committed by
Russell King (Oracle)
c755238d e73f0f0e

+4 -4
+4 -4
arch/arm/crypto/curve25519-glue.c
··· 112 112 .max_size = curve25519_max_size, 113 113 }; 114 114 115 - static int __init mod_init(void) 115 + static int __init arm_curve25519_init(void) 116 116 { 117 117 if (elf_hwcap & HWCAP_NEON) { 118 118 static_branch_enable(&have_neon); ··· 122 122 return 0; 123 123 } 124 124 125 - static void __exit mod_exit(void) 125 + static void __exit arm_curve25519_exit(void) 126 126 { 127 127 if (IS_REACHABLE(CONFIG_CRYPTO_KPP) && elf_hwcap & HWCAP_NEON) 128 128 crypto_unregister_kpp(&curve25519_alg); 129 129 } 130 130 131 - module_init(mod_init); 132 - module_exit(mod_exit); 131 + module_init(arm_curve25519_init); 132 + module_exit(arm_curve25519_exit); 133 133 134 134 MODULE_ALIAS_CRYPTO("curve25519"); 135 135 MODULE_ALIAS_CRYPTO("curve25519-neon");