All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1][NETNS] fix compilation error
       [not found] <20071114104348.624640717@mai.toulouse-stg.fr.ibm.com>
@ 2007-11-14 10:43 ` Daniel Lezcano
       [not found]   ` <20071114104459.680016471-WECHFHqYCmGD/CxQmPlnQ0FT0OZdM7KVQQ4Iyu8u01E@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2007-11-14 10:43 UTC (permalink / raw)
  To: den-3ImXcnM4P+0; +Cc: containers-qjLDD68F18O7TbgM5vRIOg

[-- Attachment #1: fix-rtentry_to_fib_config.patch --]
[-- Type: text/plain, Size: 762 bytes --]

fix rtentry_to_fib_config compilation error.
Replaced the init_net() function call to &init_net.

Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
---
 net/ipv4/fib_frontend.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-netns/net/ipv4/fib_frontend.c
===================================================================
--- linux-2.6-netns.orig/net/ipv4/fib_frontend.c
+++ linux-2.6-netns/net/ipv4/fib_frontend.c
@@ -294,7 +294,7 @@ static int rtentry_to_fib_config(int cmd
 	memset(cfg, 0, sizeof(*cfg));
 	cfg->fc_nlinfo.pid = 0;
 	cfg->fc_nlinfo.nlh = NULL;
-	cfg->fc_nlinfo.net = init_net();
+	cfg->fc_nlinfo.net = &init_net;
 
 	if (rt->rt_dst.sa_family != AF_INET)
 		return -EAFNOSUPPORT;

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 1/1][NETNS] fix compilation error
       [not found]   ` <20071114104459.680016471-WECHFHqYCmGD/CxQmPlnQ0FT0OZdM7KVQQ4Iyu8u01E@public.gmane.org>
@ 2007-11-14 11:00     ` Denis V. Lunev
       [not found]       ` <473AD556.9020601-3ImXcnM4P+0@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Denis V. Lunev @ 2007-11-14 11:00 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: containers-qjLDD68F18O7TbgM5vRIOg

done by the next Eric's patch. Just pushed

Daniel Lezcano wrote:
> fix rtentry_to_fib_config compilation error.
> Replaced the init_net() function call to &init_net.
> 
> Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
> ---
>  net/ipv4/fib_frontend.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-2.6-netns/net/ipv4/fib_frontend.c
> ===================================================================
> --- linux-2.6-netns.orig/net/ipv4/fib_frontend.c
> +++ linux-2.6-netns/net/ipv4/fib_frontend.c
> @@ -294,7 +294,7 @@ static int rtentry_to_fib_config(int cmd
>  	memset(cfg, 0, sizeof(*cfg));
>  	cfg->fc_nlinfo.pid = 0;
>  	cfg->fc_nlinfo.nlh = NULL;
> -	cfg->fc_nlinfo.net = init_net();
> +	cfg->fc_nlinfo.net = &init_net;
>  
>  	if (rt->rt_dst.sa_family != AF_INET)
>  		return -EAFNOSUPPORT;
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 1/1][NETNS] fix compilation error
       [not found]       ` <473AD556.9020601-3ImXcnM4P+0@public.gmane.org>
@ 2007-11-15 13:29         ` Eric W. Biederman
  0 siblings, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2007-11-15 13:29 UTC (permalink / raw)
  To: Denis V. Lunev; +Cc: containers-qjLDD68F18O7TbgM5vRIOg

"Denis V. Lunev" <den-3ImXcnM4P+0@public.gmane.org> writes:

> done by the next Eric's patch. Just pushed
>
> Daniel Lezcano wrote:
>> fix rtentry_to_fib_config compilation error.
>> Replaced the init_net() function call to &init_net.
>> 
>> Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
>> ---
>>  net/ipv4/fib_frontend.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> Index: linux-2.6-netns/net/ipv4/fib_frontend.c
>> ===================================================================
>> --- linux-2.6-netns.orig/net/ipv4/fib_frontend.c
>> +++ linux-2.6-netns/net/ipv4/fib_frontend.c
>> @@ -294,7 +294,7 @@ static int rtentry_to_fib_config(int cmd
>>  	memset(cfg, 0, sizeof(*cfg));
>>  	cfg->fc_nlinfo.pid = 0;
>>  	cfg->fc_nlinfo.nlh = NULL;
>> -	cfg->fc_nlinfo.net = init_net();
>> +	cfg->fc_nlinfo.net = &init_net;
>>  
>>  	if (rt->rt_dst.sa_family != AF_INET)
>>  		return -EAFNOSUPPORT;
>> 

Oops.  Looks like some more old cruft I have failed to find and fix.
The joy of refactoring through a series of patches...

Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-15 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20071114104348.624640717@mai.toulouse-stg.fr.ibm.com>
2007-11-14 10:43 ` [patch 1/1][NETNS] fix compilation error Daniel Lezcano
     [not found]   ` <20071114104459.680016471-WECHFHqYCmGD/CxQmPlnQ0FT0OZdM7KVQQ4Iyu8u01E@public.gmane.org>
2007-11-14 11:00     ` Denis V. Lunev
     [not found]       ` <473AD556.9020601-3ImXcnM4P+0@public.gmane.org>
2007-11-15 13:29         ` Eric W. Biederman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.