aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index f126d18dbdc4..53633c5fdb1d 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -2457,7 +2457,7 @@ static const struct file_operations packet_seq_fops = {
2457 2457
2458#endif 2458#endif
2459 2459
2460static int packet_net_init(struct net *net) 2460static int __net_init packet_net_init(struct net *net)
2461{ 2461{
2462 rwlock_init(&net->packet.sklist_lock); 2462 rwlock_init(&net->packet.sklist_lock);
2463 INIT_HLIST_HEAD(&net->packet.sklist); 2463 INIT_HLIST_HEAD(&net->packet.sklist);
@@ -2468,7 +2468,7 @@ static int packet_net_init(struct net *net)
2468 return 0; 2468 return 0;
2469} 2469}
2470 2470
2471static void packet_net_exit(struct net *net) 2471static void __net_exit packet_net_exit(struct net *net)
2472{ 2472{
2473 proc_net_remove(net, "packet"); 2473 proc_net_remove(net, "packet");
2474} 2474}