mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: spread __net_init, __net_exit
__net_init/__net_exit are apparently not going away, so use them to full extent. In some cases __net_init was removed, because it was called from __net_exit code. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
72659ecce6
commit
2c8c1e7297
44 changed files with 107 additions and 112 deletions
|
|
@ -663,7 +663,7 @@ out:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int vlan_init_net(struct net *net)
|
||||
static int __net_init vlan_init_net(struct net *net)
|
||||
{
|
||||
struct vlan_net *vn = net_generic(net, vlan_net_id);
|
||||
int err;
|
||||
|
|
@ -675,7 +675,7 @@ static int vlan_init_net(struct net *net)
|
|||
return err;
|
||||
}
|
||||
|
||||
static void vlan_exit_net(struct net *net)
|
||||
static void __net_exit vlan_exit_net(struct net *net)
|
||||
{
|
||||
vlan_proc_cleanup(net);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ void vlan_proc_cleanup(struct net *net)
|
|||
* Create /proc/net/vlan entries
|
||||
*/
|
||||
|
||||
int vlan_proc_init(struct net *net)
|
||||
int __net_init vlan_proc_init(struct net *net)
|
||||
{
|
||||
struct vlan_net *vn = net_generic(net, vlan_net_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue