From: "Denis V. Lunev" <den@openvz.org>
To: David Miller <davem@davemloft.net>
Cc: yoshfuji@linux-ipv6.org, netdev@vger.kernel.org,
containers <containers@lists.osdl.org>
Subject: Re: [PATCH 0/3 net-2.6.26] Compilation fixes.
Date: Wed, 02 Apr 2008 14:01:14 +0400 [thread overview]
Message-ID: <1207130474.17626.2.camel@iris.sw.ru> (raw)
In-Reply-To: <20080402.001048.267915281.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
On Wed, 2008-04-02 at 00:10 -0700, David Miller wrote:
> From: "Denis V. Lunev" <den@openvz.org>
> Date: Mon, 31 Mar 2008 19:46:01 +0400
>
> > Hello, Dave!
> >
> > Recently I have seen several issues post to the netdev@ blaming
> > inclusion of the net_namespace.h from seq_file. This set fixes this
> > problem after two small cleanups.
>
> All applied, thanks Denis.
>
> I'll push to net-2.6.26 after some build sanity checks.
Dave, could you pls conside this addition. This should fix problem
reported by the Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> recently.
[-- Attachment #2: diff-netns-compile.txt --]
[-- Type: text/plain, Size: 798 bytes --]
[NETNS]: Declare init_net even without CONFIG_NET defined.
This seems bogus but there is no other way for now. There are several
placec when networking headers are included even without CONFIG_NET and
the possibility of the similar reports in the nearest future is great.
Signed-off-by: Denis V. Lunev <den@openvz.org>
----
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 6c9a48a..0ab62ed 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -60,11 +60,12 @@ struct net {
};
-#ifdef CONFIG_NET
#include <linux/seq_file_net.h>
/* Init's network namespace */
extern struct net init_net;
+
+#ifdef CONFIG_NET
#define INIT_NET_NS(net_ns) .net_ns = &init_net,
extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns);
next prev parent reply other threads:[~2008-04-02 10:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 15:46 [PATCH 0/3 net-2.6.26] Compilation fixes Denis V. Lunev
2008-03-31 15:47 ` [PATCH 1/3 net-2.6.26] [NETNS]: Merge ifdef CONFIG_NET in include/net/net_namespace.h Denis V. Lunev
2008-03-31 15:47 ` [PATCH 2/3 net-2.6.26] [NETNS]: Remove ifdef CONFIG_NET braces in fs/proc/proc_net.c Denis V. Lunev
2008-03-31 15:47 ` [PATCH 3/3 net-2.6.26] [NETNS]: Do not include net/net_namespace.h from seq_file.h Denis V. Lunev
2008-04-02 7:10 ` [PATCH 0/3 net-2.6.26] Compilation fixes David Miller
2008-04-02 10:01 ` Denis V. Lunev [this message]
2008-04-02 18:42 ` David Miller
2008-04-02 19:46 ` Denis V. Lunev
2008-04-02 20:56 ` David Miller
2008-04-02 21:00 ` Denis V. Lunev
2008-04-02 21:00 ` David Miller
2008-04-03 14:13 ` Denis V. Lunev
2008-04-03 20:25 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1207130474.17626.2.camel@iris.sw.ru \
--to=den@openvz.org \
--cc=containers@lists.osdl.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox