Skip to contentSkip to conversation

properly annotate ipv4_netfilter_{init,fini}()

PATCH In review Jan Beulich 2 participants 2 messages Jun 18, 2012 – Sep 3, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 properly annotate ipv4_netfilter_{init,fini}()

Despite being just a few bytes of code, they should still have proper annotations.

---
 net/ipv4/netfilter.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv4/netfilter.c +2 -2
@@ -225,12 +225,12 @@ static const struct nf_afinfo nf_ip_afin
 	.route_key_size		= sizeof(struct ip_rt_info),
 };
 
-static int ipv4_netfilter_init(void)
+static int __init ipv4_netfilter_init(void)
 {
 	return nf_register_afinfo(&nf_ip_afinfo);
 }
 
-static void ipv4_netfilter_fini(void)
+static void __exit ipv4_netfilter_fini(void)
 {
 	nf_unregister_afinfo(&nf_ip_afinfo);
 }
#1 lore raw
Quoted 2 lines · Jan Beulich

Despite being just a few bytes of code, they should still have proper annotations.

I missed this small one, now applied, thanks Jan.