[<prev] [next>] [day] [month] [year] [list]
Message-ID: <eb3ff54b0801290253g657590acoc420eb7c6fcaa7c9@mail.gmail.com>
Date: Tue, 29 Jan 2008 12:53:02 +0200
From: "Rami Rosen" <ramirose@...il.com>
To: "David Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH net-2.6.25] [NETNS] change net/Kconfig to avoid a broken build when building with network namesapce support.
Hi,
The build is broken with the following kernel configuration:
- net-2.6.25
- Support for network namespaces enabled (CONFIG_NET_NS=y)
- CONFIG_RCU_TRACE=y
CONFIG_RCU_TRACE can be set by:
make menuconfig ->Processor type and features->Enable tracing for RCU.
- The error in build is :
fs/built-in.o: In function `debugfs_init':
/work/src/netGit2.6.25/2.6.25/fs/debugfs/inode.c:435: undefined
reference to `kernel_kobj'
make: *** [.tmp_vmlinux1] Error 1
The reason is : RCU_TRACE selects DEBUG_FS,
but CONFIG_NET_NS depends on EXPERIMENTAL && !SYSFS;
debugfs can't be built without sysfs.
There is currently a bit of mess with SYSFS and in fact it seems that
maybe selecting DEBUG_FS
should depend on SYSFS; to avoid this problem in the build,
this patch adds !DEBUG_FS to CONFIG_NET_NS dependencies in net/Kconfig.
This way, if CONFIG_RCU_TRACE is set, ( or other configuration items which
selects DEBUG_FS), we cannot set CONFIG_NET_NS.
Regards,
Rami Rosen
Signed-off-by: Rami Rosen <ramirose@...il.com>
View attachment "patch.txt" of type "text/plain" (397 bytes)
Powered by blists - more mailing lists