From: Lucas Tanure <tanure@linux.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>,
Patrick McHardy <kaber@trash.net>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"David S . Miller" <davem@davemloft.net>,
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
coreteam@netfilter.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/4] netfilter: ipv4: EXPORT_SYMBOL should be shortly thereafter the exported function
Date: Sat, 30 Jan 2016 11:17:56 -0200 [thread overview]
Message-ID: <1454159878-20706-2-git-send-email-tanure@linux.com> (raw)
In-Reply-To: <1454159878-20706-1-git-send-email-tanure@linux.com>
change made to resolve following checkpatch message:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
net/ipv4/netfilter/ip_tables.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index aa0e41e..79d4a04 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -442,6 +442,7 @@ ipt_do_table(struct sk_buff *skb,
else return verdict;
#endif
}
+EXPORT_SYMBOL(ipt_do_table);
/* Figures out from what hook each rule can be called: returns 0 if
there are loops. Puts hook bitmask in comefrom. */
@@ -2098,6 +2099,7 @@ out_free:
out:
return ERR_PTR(ret);
}
+EXPORT_SYMBOL(ipt_register_table);
void ipt_unregister_table(struct net *net, struct xt_table *table)
{
@@ -2116,6 +2118,7 @@ void ipt_unregister_table(struct net *net, struct xt_table *table)
module_put(table_owner);
xt_free_table_info(private);
}
+EXPORT_SYMBOL(ipt_unregister_table);
/* Returns 1 if the type and code is matched by the range, 0 otherwise */
static inline bool
@@ -2269,8 +2272,5 @@ static void __exit ip_tables_fini(void)
unregister_pernet_subsys(&ip_tables_net_ops);
}
-EXPORT_SYMBOL(ipt_register_table);
-EXPORT_SYMBOL(ipt_unregister_table);
-EXPORT_SYMBOL(ipt_do_table);
module_init(ip_tables_init);
module_exit(ip_tables_fini);
--
2.7.0
next prev parent reply other threads:[~2016-01-30 13:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-30 13:17 [PATCH 1/4] netfilter: ipv4: use linux/uaccess.h Lucas Tanure
2016-01-30 13:17 ` Lucas Tanure [this message]
2016-01-30 13:17 ` [PATCH 3/4] netfilter: ipv4: use preferred kernel types Lucas Tanure
2016-01-30 13:45 ` Patrick McHardy
2016-01-30 14:05 ` Lucas Tanure
2016-01-30 17:25 ` Joe Perches
2016-01-30 17:51 ` Eric Dumazet
2016-01-30 18:26 ` Joe Perches
2016-01-30 18:41 ` Lucas Tanure
2016-02-01 16:37 ` David Laight
2016-02-01 19:41 ` David Miller
2016-02-01 20:04 ` Tom Herbert
2016-01-30 13:17 ` [PATCH 4/4] netfilter: ipv4: spaces preferred around operators Lucas Tanure
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454159878-20706-2-git-send-email-tanure@linux.com \
--to=tanure@linux.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).