OpenVZ Forum


Home » Mailing lists » Devel » [RFC][patch 0/1] fix allnoconfig for net-2.6.24
[RFC][patch 0/1] fix allnoconfig for net-2.6.24 [message #20162] Wed, 12 September 2007 17:07 Go to previous message
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
The kernel compilation fails with allnoconfig with an unresolved to init_net.
I tryed to figure out how to fix that. The problem is raised because the init_net
variable is defined as extern in net_namespace.h while the variable is declared
in net_namespace.c. This file is not compiled because of the config options and
that leads to the compilation error.

I noticed the uts namespace defines the init_uts_ns in init/version.c, so I moved
the init_net to this file too. The compilation error is fixed.

But I don't like really this approach because:
	1 - we fall under a part not covered by the network
	2 - we add a new include net_namespace.h in version.c

Does this fix seems correct ? I just want to fix it for now to have net-2.6.24
compiling for all configs.

-- 
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Kernel memory controller
Next Topic: [NETNS][patch 0/1] fix allnoconfig compilation error
Goto Forum:
  


Current Time: Sat Oct 11 05:16:01 GMT 2025

Total time taken to generate the page: 0.15555 seconds