* [PATCH net-next] netfilter: xtables make functions local
@ 2013-12-27 20:09 Stephen Hemminger
2013-12-28 6:21 ` David Miller
2013-12-30 17:19 ` Pablo Neira Ayuso
0 siblings, 2 replies; 5+ messages in thread
From: Stephen Hemminger @ 2013-12-27 20:09 UTC (permalink / raw)
To: Pablo Neira Ayuso, David Miller; +Cc: netfilter-devel, netdev
A couple of functions only used in x_tables, don't need to be global
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
include/linux/netfilter/x_tables.h | 2 --
net/netfilter/x_tables.c | 6 ++----
2 files changed, 2 insertions(+), 6 deletions(-)
--- a/include/linux/netfilter/x_tables.h 2013-12-24 15:14:54.502174551 -0800
+++ b/include/linux/netfilter/x_tables.h 2013-12-24 15:16:01.889269178 -0800
@@ -255,8 +255,6 @@ struct xt_table_info *xt_replace_table(s
struct xt_table_info *newinfo,
int *error);
-struct xt_match *xt_find_match(u8 af, const char *name, u8 revision);
-struct xt_target *xt_find_target(u8 af, const char *name, u8 revision);
struct xt_match *xt_request_find_match(u8 af, const char *name, u8 revision);
struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision);
int xt_find_revision(u8 af, const char *name, u8 revision, int target,
--- a/net/netfilter/x_tables.c 2013-12-24 15:14:54.502174551 -0800
+++ b/net/netfilter/x_tables.c 2013-12-24 15:16:01.889269178 -0800
@@ -189,7 +189,7 @@ EXPORT_SYMBOL(xt_unregister_matches);
*/
/* Find match, grabs ref. Returns ERR_PTR() on error. */
-struct xt_match *xt_find_match(u8 af, const char *name, u8 revision)
+static struct xt_match *xt_find_match(u8 af, const char *name, u8 revision)
{
struct xt_match *m;
int err = -ENOENT;
@@ -216,7 +216,6 @@ struct xt_match *xt_find_match(u8 af, co
return ERR_PTR(err);
}
-EXPORT_SYMBOL(xt_find_match);
struct xt_match *
xt_request_find_match(uint8_t nfproto, const char *name, uint8_t revision)
@@ -234,7 +233,7 @@ xt_request_find_match(uint8_t nfproto, c
EXPORT_SYMBOL_GPL(xt_request_find_match);
/* Find target, grabs ref. Returns ERR_PTR() on error. */
-struct xt_target *xt_find_target(u8 af, const char *name, u8 revision)
+static struct xt_target *xt_find_target(u8 af, const char *name, u8 revision)
{
struct xt_target *t;
int err = -ENOENT;
@@ -261,7 +260,6 @@ struct xt_target *xt_find_target(u8 af,
return ERR_PTR(err);
}
-EXPORT_SYMBOL(xt_find_target);
struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision)
{
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] netfilter: xtables make functions local
2013-12-27 20:09 [PATCH net-next] netfilter: xtables make functions local Stephen Hemminger
@ 2013-12-28 6:21 ` David Miller
2013-12-28 11:31 ` Jan Engelhardt
2013-12-30 17:19 ` Pablo Neira Ayuso
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2013-12-28 6:21 UTC (permalink / raw)
To: stephen; +Cc: pablo, netfilter-devel, netdev
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Fri, 27 Dec 2013 12:09:37 -0800
> A couple of functions only used in x_tables, don't need to be global
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
I'll let Pablo pick this up, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] netfilter: xtables make functions local
2013-12-28 6:21 ` David Miller
@ 2013-12-28 11:31 ` Jan Engelhardt
2013-12-28 12:50 ` Pablo Neira Ayuso
0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2013-12-28 11:31 UTC (permalink / raw)
To: stephen
Cc: Pablo Neira Ayuso, David Miller, Netfilter Developer Mailing List,
Linux Networking Developer Mailing List
On Saturday 2013-12-28 07:21, David Miller wrote:
>From: Stephen Hemminger <stephen@networkplumber.org>
>Date: Fri, 27 Dec 2013 12:09:37 -0800
>
>> A couple of functions only used in x_tables, don't need to be global
>>
>> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
>
>I'll let Pablo pick this up, thanks.
Negative, there is at least one known external modules using these.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] netfilter: xtables make functions local
2013-12-28 11:31 ` Jan Engelhardt
@ 2013-12-28 12:50 ` Pablo Neira Ayuso
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2013-12-28 12:50 UTC (permalink / raw)
To: Jan Engelhardt
Cc: stephen, David Miller, Netfilter Developer Mailing List,
Linux Networking Developer Mailing List
On Sat, Dec 28, 2013 at 12:31:26PM +0100, Jan Engelhardt wrote:
> On Saturday 2013-12-28 07:21, David Miller wrote:
>
> >From: Stephen Hemminger <stephen@networkplumber.org>
> >Date: Fri, 27 Dec 2013 12:09:37 -0800
> >
> >> A couple of functions only used in x_tables, don't need to be global
> >>
> >> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> >
> >I'll let Pablo pick this up, thanks.
>
> Negative, there is at least one known external modules using these.
Unfortunately, we cannot keep symbols for out of tree modules, that
has been the longterm policy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] netfilter: xtables make functions local
2013-12-27 20:09 [PATCH net-next] netfilter: xtables make functions local Stephen Hemminger
2013-12-28 6:21 ` David Miller
@ 2013-12-30 17:19 ` Pablo Neira Ayuso
1 sibling, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2013-12-30 17:19 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Miller, netfilter-devel, netdev
On Fri, Dec 27, 2013 at 12:09:37PM -0800, Stephen Hemminger wrote:
> A couple of functions only used in x_tables, don't need to be global
Applied, thanks stephen.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-30 17:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-27 20:09 [PATCH net-next] netfilter: xtables make functions local Stephen Hemminger
2013-12-28 6:21 ` David Miller
2013-12-28 11:31 ` Jan Engelhardt
2013-12-28 12:50 ` Pablo Neira Ayuso
2013-12-30 17:19 ` 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).