OpenVZ Forum


Home » Mailing lists » Devel » [patch 1/1][NETNS] fix compilation error
[patch 1/1][NETNS] fix compilation error [message #23207] Wed, 14 November 2007 10:43 Go to next message
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
fix rtentry_to_fib_config compilation error.
Replaced the init_net() function call to &init_net.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
---
 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;

-- 
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: [patch 1/1][NETNS] fix compilation error [message #23209 is a reply to message #23207] Wed, 14 November 2007 10:58 Go to previous messageGo to next message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
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@fr.ibm.com>
> ---
>  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;
> 

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: [patch 1/1][NETNS] fix compilation error [message #23313 is a reply to message #23209] Thu, 15 November 2007 13:29 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
"Denis V. Lunev" <den@sw.ru> 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@fr.ibm.com>
>> ---
>>  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
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [RFC][ for -mm] memory controller enhancements for NUMA [0/10] introduction
Next Topic: net-2.6.25-netns branch on git.openvz.org
Goto Forum:
  


Current Time: Sat Jul 13 09:04:19 GMT 2024

Total time taken to generate the page: 0.02270 seconds