X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=net%2Fpacket%2Faf_packet.c;h=53633c5fdb1d612070911a484904906c280a2abf;hb=51c24aaacaea90c8e87f1dec75a2ac7622b593f8;hp=f126d18dbdc481598fcd4de58c74fd434b0a18f9;hpb=be6066f34c948ccf4adcc90bbeb1fd335d663303;p=mirror_ubuntu-jammy-kernel.git 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 = { #endif -static int packet_net_init(struct net *net) +static int __net_init packet_net_init(struct net *net) { rwlock_init(&net->packet.sklist_lock); INIT_HLIST_HEAD(&net->packet.sklist); @@ -2468,7 +2468,7 @@ static int packet_net_init(struct net *net) return 0; } -static void packet_net_exit(struct net *net) +static void __net_exit packet_net_exit(struct net *net) { proc_net_remove(net, "packet"); }