forked from grate-driver/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: hdlc: rename 'mod_init' & 'mod_exit' functions to be module-spec…
…ific 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: Krzysztof Halasa <[email protected]> Cc: [email protected] Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Martin Schiller <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
6 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,19 +364,19 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr) | |
return -EINVAL; | ||
} | ||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_cisco_init(void) | ||
{ | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_cisco_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_cisco_init); | ||
module_exit(hdlc_cisco_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("Cisco HDLC protocol support for generic HDLC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1279,19 +1279,19 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) | |
return -EINVAL; | ||
} | ||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_fr_init(void) | ||
{ | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_fr_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_fr_init); | ||
module_exit(hdlc_fr_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("Frame-Relay protocol support for generic HDLC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -705,20 +705,20 @@ static int ppp_ioctl(struct net_device *dev, struct ifreq *ifr) | |
return -EINVAL; | ||
} | ||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_ppp_init(void) | ||
{ | ||
skb_queue_head_init(&tx_queue); | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_ppp_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_ppp_init); | ||
module_exit(hdlc_ppp_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("PPP protocol support for generic HDLC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,22 +90,22 @@ static int raw_ioctl(struct net_device *dev, struct ifreq *ifr) | |
} | ||
|
||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_raw_init(void) | ||
{ | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
|
||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_raw_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_raw_init); | ||
module_exit(hdlc_raw_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("Raw HDLC protocol support for generic HDLC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,22 +110,22 @@ static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr) | |
} | ||
|
||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_eth_init(void) | ||
{ | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
|
||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_eth_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_eth_init); | ||
module_exit(hdlc_eth_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("Ethernet encapsulation support for generic HDLC"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,19 +365,19 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr) | |
return -EINVAL; | ||
} | ||
|
||
static int __init mod_init(void) | ||
static int __init hdlc_x25_init(void) | ||
{ | ||
register_hdlc_protocol(&proto); | ||
return 0; | ||
} | ||
|
||
static void __exit mod_exit(void) | ||
static void __exit hdlc_x25_exit(void) | ||
{ | ||
unregister_hdlc_protocol(&proto); | ||
} | ||
|
||
module_init(mod_init); | ||
module_exit(mod_exit); | ||
module_init(hdlc_x25_init); | ||
module_exit(hdlc_x25_exit); | ||
|
||
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>"); | ||
MODULE_DESCRIPTION("X.25 protocol support for generic HDLC"); | ||
|