* [RFC: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr() static
@ 2006-03-24 0:09 Adrian Bunk
2006-03-24 2:37 ` 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static Jing Min Zhao
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-03-24 0:09 UTC (permalink / raw)
To: Jing Min Zhao; +Cc: netdev, netfilter-devel, linux-kernel
This patch makes a needlessly global function static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
net/ipv4/netfilter/ip_conntrack_helper_h323.c | 5 ++---
net/ipv4/netfilter/ip_nat_helper_h323.c | 2 --
2 files changed, 2 insertions(+), 5 deletions(-)
--- linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_nat_helper_h323.c.old 2006-03-23 23:13:59.000000000 +0100
+++ linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_nat_helper_h323.c 2006-03-23 23:14:05.000000000 +0100
@@ -49,8 +49,6 @@
#define DEBUGP(format, args...)
#endif
-extern int get_h245_addr(unsigned char *data, H245_TransportAddress * addr,
- u_int32_t * ip, u_int16_t * port);
extern int get_h225_addr(unsigned char *data, TransportAddress * addr,
u_int32_t * ip, u_int16_t * port);
extern void ip_conntrack_h245_expect(struct ip_conntrack *new,
--- linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_conntrack_helper_h323.c.old 2006-03-23 23:14:21.000000000 +0100
+++ linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_conntrack_helper_h323.c 2006-03-23 23:14:35.000000000 +0100
@@ -222,8 +222,8 @@
}
/****************************************************************************/
-int get_h245_addr(unsigned char *data, H245_TransportAddress * addr,
- u_int32_t * ip, u_int16_t * port)
+static int get_h245_addr(unsigned char *data, H245_TransportAddress * addr,
+ u_int32_t * ip, u_int16_t * port)
{
unsigned char *p;
@@ -1713,7 +1713,6 @@
module_init(init);
module_exit(fini);
-EXPORT_SYMBOL(get_h245_addr);
EXPORT_SYMBOL(get_h225_addr);
EXPORT_SYMBOL(ip_conntrack_h245_expect);
EXPORT_SYMBOL(ip_conntrack_q931_expect);
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static
2006-03-24 0:09 [RFC: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr() static Adrian Bunk
@ 2006-03-24 2:37 ` Jing Min Zhao
2006-03-24 7:55 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: Jing Min Zhao @ 2006-03-24 2:37 UTC (permalink / raw)
To: Adrian Bunk, Jing Min Zhao; +Cc: netdev, netfilter-devel, linux-kernel
----- Original Message -----
From: "Adrian Bunk" <bunk@stusta.de>
To: "Jing Min Zhao" <zhaojignmin@hotmail.com>
Cc: <netdev@vger.kernel.org>; <netfilter-devel@lists.netfilter.org>;
<linux-kernel@vger.kernel.org>
Sent: Thursday, March 23, 2006 7:09 PM
Subject: [RFC: 2.6 patch] ip_conntrack_helper_h323.c: make
get_h245_addr()static
I'd like to keep it global. In the future we may need it.
Thanks
Jing Min Zhao
> This patch makes a needlessly global function static.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> ---
>
> net/ipv4/netfilter/ip_conntrack_helper_h323.c | 5 ++---
> net/ipv4/netfilter/ip_nat_helper_h323.c | 2 --
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> --- linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_nat_helper_h323.c.old
> 2006-03-23 23:13:59.000000000 +0100
> +++ linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_nat_helper_h323.c
> 2006-03-23 23:14:05.000000000 +0100
> @@ -49,8 +49,6 @@
> #define DEBUGP(format, args...)
> #endif
>
> -extern int get_h245_addr(unsigned char *data, H245_TransportAddress *
> addr,
> - u_int32_t * ip, u_int16_t * port);
> extern int get_h225_addr(unsigned char *data, TransportAddress * addr,
> u_int32_t * ip, u_int16_t * port);
> extern void ip_conntrack_h245_expect(struct ip_conntrack *new,
> ---
> linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_conntrack_helper_h323.c.old
> 2006-03-23 23:14:21.000000000 +0100
> +++ linux-2.6.16-mm1-full/net/ipv4/netfilter/ip_conntrack_helper_h323.c
> 2006-03-23 23:14:35.000000000 +0100
> @@ -222,8 +222,8 @@
> }
>
> /****************************************************************************/
> -int get_h245_addr(unsigned char *data, H245_TransportAddress * addr,
> - u_int32_t * ip, u_int16_t * port)
> +static int get_h245_addr(unsigned char *data, H245_TransportAddress *
> addr,
> + u_int32_t * ip, u_int16_t * port)
> {
> unsigned char *p;
>
> @@ -1713,7 +1713,6 @@
> module_init(init);
> module_exit(fini);
>
> -EXPORT_SYMBOL(get_h245_addr);
> EXPORT_SYMBOL(get_h225_addr);
> EXPORT_SYMBOL(ip_conntrack_h245_expect);
> EXPORT_SYMBOL(ip_conntrack_q931_expect);
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static
2006-03-24 2:37 ` 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static Jing Min Zhao
@ 2006-03-24 7:55 ` Adrian Bunk
2006-03-24 7:55 ` David S. Miller
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-03-24 7:55 UTC (permalink / raw)
To: Jing Min Zhao; +Cc: netdev, netfilter-devel, Jing Min Zhao, linux-kernel
On Thu, Mar 23, 2006 at 09:37:15PM -0500, Jing Min Zhao wrote:
>
> I'd like to keep it global. In the future we may need it.
The point is:
There have been many occasions where people have said "I will need this
soon" in many different places in the kernel, and one year later it was
still unused.
If it will be needed at some point in the future, reverting my patch
will be trivial.
> Thanks
>
> Jing Min Zhao
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static
2006-03-24 7:55 ` Adrian Bunk
@ 2006-03-24 7:55 ` David S. Miller
0 siblings, 0 replies; 4+ messages in thread
From: David S. Miller @ 2006-03-24 7:55 UTC (permalink / raw)
To: bunk; +Cc: netdev, netfilter-devel, zhaojignmin, linux-kernel, zhaojingmin
From: Adrian Bunk <bunk@stusta.de>
Date: Fri, 24 Mar 2006 08:55:11 +0100
> The point is:
> There have been many occasions where people have said "I will need this
> soon" in many different places in the kernel, and one year later it was
> still unused.
>
> If it will be needed at some point in the future, reverting my patch
> will be trivial.
Agreed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-24 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-24 0:09 [RFC: 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr() static Adrian Bunk
2006-03-24 2:37 ` 2.6 patch] ip_conntrack_helper_h323.c: make get_h245_addr()static Jing Min Zhao
2006-03-24 7:55 ` Adrian Bunk
2006-03-24 7:55 ` David S. Miller
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).