netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] properly annotate ipv4_netfilter_{init,fini}()
@ 2012-06-18 10:18 Jan Beulich
  2012-09-03 15:32 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2012-06-18 10:18 UTC (permalink / raw)
  To: pablo, kaber; +Cc: netfilter-devel

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

Signed-off-by: Jan Beulich <jbeulich@suse.com>

---
 net/ipv4/netfilter.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 3.5-rc3/net/ipv4/netfilter.c
+++ 3.5-rc3-ipv4-netfilter-sections/net/ipv4/netfilter.c
@@ -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);
 }




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-03 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 10:18 [PATCH] properly annotate ipv4_netfilter_{init,fini}() Jan Beulich
2012-09-03 15:32 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).