diff mbox

[net-next] ipv6: Export in6addr_any for use by modules.

Message ID 1283274495-12416-1-git-send-email-greearb@candelatech.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Ben Greear Aug. 31, 2010, 5:08 p.m. UTC
Some upcoming cifs code, could make use of this, at least.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 ab70a3f... 735989a... M	net/ipv6/addrconf.c
 net/ipv6/addrconf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Ben Greear Aug. 31, 2010, 11:01 p.m. UTC | #1
On 08/31/2010 10:08 AM, Ben Greear wrote:
> Some upcoming cifs code, could make use of this, at least.

Actually, it's probably not worth the dependency on ipv6
for this small bit of code savings, so at least for cifs,
this probably isn't useful.

Thanks,
Ben

>
> Signed-off-by: Ben Greear<greearb@candelatech.com>
> ---
> :100644 100644 ab70a3f... 735989a... M	net/ipv6/addrconf.c
>   net/ipv6/addrconf.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
> index ab70a3f..735989a 100644
> --- a/net/ipv6/addrconf.c
> +++ b/net/ipv6/addrconf.c
> @@ -230,6 +230,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
>
>   /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */
>   const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
> +EXPORT_SYMBOL(in6addr_any);
>   const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
>   const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
>   const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
David Miller Sept. 1, 2010, 6:07 p.m. UTC | #2
From: Ben Greear <greearb@candelatech.com>
Date: Tue, 31 Aug 2010 16:01:35 -0700

> On 08/31/2010 10:08 AM, Ben Greear wrote:
>> Some upcoming cifs code, could make use of this, at least.
> 
> Actually, it's probably not worth the dependency on ipv6
> for this small bit of code savings, so at least for cifs,
> this probably isn't useful.

Completely agreed.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index ab70a3f..735989a 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -230,6 +230,7 @@  static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = {
 
 /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */
 const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
+EXPORT_SYMBOL(in6addr_any);
 const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
 const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
 const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;