From: ebiederm@xmission.com (Eric W. Biederman)
To: "Denis V. Lunev" <den@openvz.org>
Cc: herbert@gondor.apana.org.au, devel@openvz.org,
netdev@vger.kernel.org, davem@davemloft.net, xemul@openvz.org
Subject: Re: [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h
Date: Mon, 03 Dec 2007 04:56:01 -0700 [thread overview]
Message-ID: <m1odd80z72.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20071203091200.GA20442@iris.sw.ru> (Denis V. Lunev's message of "Mon, 3 Dec 2007 12:12:00 +0300")
"Denis V. Lunev" <den@openvz.org> writes:
> This patch removes some unneeded includes for net_namespace.h to speed up
> compilation.
>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
>
> diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
> index f285de6..28b7f25 100644
> --- a/include/net/pkt_cls.h
> +++ b/include/net/pkt_cls.h
> @@ -2,7 +2,6 @@
> #define __NET_PKT_CLS_H
>
> #include <linux/pkt_cls.h>
> -#include <net/net_namespace.h>
> #include <net/sch_generic.h>
> #include <net/act_api.h>
What of tcf_match_indev? I guess linux/netdevice.h brings
it in for us but still.
> diff --git a/include/net/sock.h b/include/net/sock.h
> index 43e3cd9..a04e361 100644
> --- a/include/net/sock.h
> +++ b/include/net/sock.h
> @@ -57,7 +57,6 @@
> #include <asm/atomic.h>
> #include <net/dst.h>
> #include <net/checksum.h>
> -#include <net/net_namespace.h>
>
> /*
> * This structure really needs to be cleaned up.
> @@ -95,6 +94,7 @@ typedef struct {
>
> struct sock;
> struct proto;
> +struct net;
>
> /**
> * struct sock_common - minimal network layer representation of sockets
This hunk definitely looks sane.
Eric
next prev parent reply other threads:[~2007-12-03 11:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 9:12 [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h Denis V. Lunev
2007-12-03 11:56 ` Eric W. Biederman [this message]
2007-12-03 12:09 ` Denis V. Lunev
2007-12-03 17:03 ` Eric W. Biederman
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=m1odd80z72.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=davem@davemloft.net \
--cc=den@openvz.org \
--cc=devel@openvz.org \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=xemul@openvz.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;
as well as URLs for NNTP newsgroup(s).