Patchwork properly annotate ipv4_netfilter_{init,fini}()

login
register
mail settings
Submitter Jan Beulich
Date June 18, 2012, 10:18 a.m.
Message ID <4FDF1C97020000780008A64E@nat28.tlf.novell.com>
Download mbox | patch
Permalink /patch/165445/
State Accepted
Headers show

Comments

Jan Beulich - June 18, 2012, 10:18 a.m.
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(-)




--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Pablo Neira - Sept. 3, 2012, 3:32 p.m.
On Mon, Jun 18, 2012 at 11:18:31AM +0100, Jan Beulich wrote:
> Despite being just a few bytes of code, they should still have proper
> annotations.

I missed this small one, now applied, thanks Jan.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- 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);
 }