diff options
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan.c | 4 | ||||
-rw-r--r-- | net/8021q/vlanproc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 33f90e7362cc..453512266ea1 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -663,7 +663,7 @@ out: | |||
663 | return err; | 663 | return err; |
664 | } | 664 | } |
665 | 665 | ||
666 | static int vlan_init_net(struct net *net) | 666 | static int __net_init vlan_init_net(struct net *net) |
667 | { | 667 | { |
668 | struct vlan_net *vn = net_generic(net, vlan_net_id); | 668 | struct vlan_net *vn = net_generic(net, vlan_net_id); |
669 | int err; | 669 | int err; |
@@ -675,7 +675,7 @@ static int vlan_init_net(struct net *net) | |||
675 | return err; | 675 | return err; |
676 | } | 676 | } |
677 | 677 | ||
678 | static void vlan_exit_net(struct net *net) | 678 | static void __net_exit vlan_exit_net(struct net *net) |
679 | { | 679 | { |
680 | vlan_proc_cleanup(net); | 680 | vlan_proc_cleanup(net); |
681 | } | 681 | } |
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index 9ec1f057c03a..afead353e215 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -140,7 +140,7 @@ void vlan_proc_cleanup(struct net *net) | |||
140 | * Create /proc/net/vlan entries | 140 | * Create /proc/net/vlan entries |
141 | */ | 141 | */ |
142 | 142 | ||
143 | int vlan_proc_init(struct net *net) | 143 | int __net_init vlan_proc_init(struct net *net) |
144 | { | 144 | { |
145 | struct vlan_net *vn = net_generic(net, vlan_net_id); | 145 | struct vlan_net *vn = net_generic(net, vlan_net_id); |
146 | 146 | ||