Skip to content

Commit a1739c3

Browse files
rddunlapdavem330
authored andcommitted
net: hdlc: 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: 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]>
1 parent d2eecc5 commit a1739c3

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

drivers/net/wan/hdlc_cisco.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,19 +364,19 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
364364
return -EINVAL;
365365
}
366366

367-
static int __init mod_init(void)
367+
static int __init hdlc_cisco_init(void)
368368
{
369369
register_hdlc_protocol(&proto);
370370
return 0;
371371
}
372372

373-
static void __exit mod_exit(void)
373+
static void __exit hdlc_cisco_exit(void)
374374
{
375375
unregister_hdlc_protocol(&proto);
376376
}
377377

378-
module_init(mod_init);
379-
module_exit(mod_exit);
378+
module_init(hdlc_cisco_init);
379+
module_exit(hdlc_cisco_exit);
380380

381381
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
382382
MODULE_DESCRIPTION("Cisco HDLC protocol support for generic HDLC");

drivers/net/wan/hdlc_fr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,19 +1279,19 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr)
12791279
return -EINVAL;
12801280
}
12811281

1282-
static int __init mod_init(void)
1282+
static int __init hdlc_fr_init(void)
12831283
{
12841284
register_hdlc_protocol(&proto);
12851285
return 0;
12861286
}
12871287

1288-
static void __exit mod_exit(void)
1288+
static void __exit hdlc_fr_exit(void)
12891289
{
12901290
unregister_hdlc_protocol(&proto);
12911291
}
12921292

1293-
module_init(mod_init);
1294-
module_exit(mod_exit);
1293+
module_init(hdlc_fr_init);
1294+
module_exit(hdlc_fr_exit);
12951295

12961296
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
12971297
MODULE_DESCRIPTION("Frame-Relay protocol support for generic HDLC");

drivers/net/wan/hdlc_ppp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,20 +705,20 @@ static int ppp_ioctl(struct net_device *dev, struct ifreq *ifr)
705705
return -EINVAL;
706706
}
707707

708-
static int __init mod_init(void)
708+
static int __init hdlc_ppp_init(void)
709709
{
710710
skb_queue_head_init(&tx_queue);
711711
register_hdlc_protocol(&proto);
712712
return 0;
713713
}
714714

715-
static void __exit mod_exit(void)
715+
static void __exit hdlc_ppp_exit(void)
716716
{
717717
unregister_hdlc_protocol(&proto);
718718
}
719719

720-
module_init(mod_init);
721-
module_exit(mod_exit);
720+
module_init(hdlc_ppp_init);
721+
module_exit(hdlc_ppp_exit);
722722

723723
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
724724
MODULE_DESCRIPTION("PPP protocol support for generic HDLC");

drivers/net/wan/hdlc_raw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,22 @@ static int raw_ioctl(struct net_device *dev, struct ifreq *ifr)
9090
}
9191

9292

93-
static int __init mod_init(void)
93+
static int __init hdlc_raw_init(void)
9494
{
9595
register_hdlc_protocol(&proto);
9696
return 0;
9797
}
9898

9999

100100

101-
static void __exit mod_exit(void)
101+
static void __exit hdlc_raw_exit(void)
102102
{
103103
unregister_hdlc_protocol(&proto);
104104
}
105105

106106

107-
module_init(mod_init);
108-
module_exit(mod_exit);
107+
module_init(hdlc_raw_init);
108+
module_exit(hdlc_raw_exit);
109109

110110
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
111111
MODULE_DESCRIPTION("Raw HDLC protocol support for generic HDLC");

drivers/net/wan/hdlc_raw_eth.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,22 @@ static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr)
110110
}
111111

112112

113-
static int __init mod_init(void)
113+
static int __init hdlc_eth_init(void)
114114
{
115115
register_hdlc_protocol(&proto);
116116
return 0;
117117
}
118118

119119

120120

121-
static void __exit mod_exit(void)
121+
static void __exit hdlc_eth_exit(void)
122122
{
123123
unregister_hdlc_protocol(&proto);
124124
}
125125

126126

127-
module_init(mod_init);
128-
module_exit(mod_exit);
127+
module_init(hdlc_eth_init);
128+
module_exit(hdlc_eth_exit);
129129

130130
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
131131
MODULE_DESCRIPTION("Ethernet encapsulation support for generic HDLC");

drivers/net/wan/hdlc_x25.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,19 +365,19 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr)
365365
return -EINVAL;
366366
}
367367

368-
static int __init mod_init(void)
368+
static int __init hdlc_x25_init(void)
369369
{
370370
register_hdlc_protocol(&proto);
371371
return 0;
372372
}
373373

374-
static void __exit mod_exit(void)
374+
static void __exit hdlc_x25_exit(void)
375375
{
376376
unregister_hdlc_protocol(&proto);
377377
}
378378

379-
module_init(mod_init);
380-
module_exit(mod_exit);
379+
module_init(hdlc_x25_init);
380+
module_exit(hdlc_x25_exit);
381381

382382
MODULE_AUTHOR("Krzysztof Halasa <[email protected]>");
383383
MODULE_DESCRIPTION("X.25 protocol support for generic HDLC");

0 commit comments

Comments
 (0)