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

wireguard: main: 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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Randy Dunlap and committed by
Jakub Kicinski
b251b711 782c72af

+4 -4
+4 -4
drivers/net/wireguard/main.c
··· 17 17 #include <linux/genetlink.h> 18 18 #include <net/rtnetlink.h> 19 19 20 - static int __init mod_init(void) 20 + static int __init wg_mod_init(void) 21 21 { 22 22 int ret; 23 23 ··· 60 60 return ret; 61 61 } 62 62 63 - static void __exit mod_exit(void) 63 + static void __exit wg_mod_exit(void) 64 64 { 65 65 wg_genetlink_uninit(); 66 66 wg_device_uninit(); ··· 68 68 wg_allowedips_slab_uninit(); 69 69 } 70 70 71 - module_init(mod_init); 72 - module_exit(mod_exit); 71 + module_init(wg_mod_init); 72 + module_exit(wg_mod_exit); 73 73 MODULE_LICENSE("GPL v2"); 74 74 MODULE_DESCRIPTION("WireGuard secure network tunnel"); 75 75 MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");