netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h
@ 2007-12-03  9:12 Denis V. Lunev
  2007-12-03 11:56 ` Eric W. Biederman
  0 siblings, 1 reply; 4+ messages in thread
From: Denis V. Lunev @ 2007-12-03  9:12 UTC (permalink / raw)
  To: herbert; +Cc: devel, netdev, davem, xemul, ebiederm

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>
 
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h
  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
  2007-12-03 12:09   ` Denis V. Lunev
  0 siblings, 1 reply; 4+ messages in thread
From: Eric W. Biederman @ 2007-12-03 11:56 UTC (permalink / raw)
  To: Denis V. Lunev; +Cc: herbert, devel, netdev, davem, xemul

"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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h
  2007-12-03 11:56 ` Eric W. Biederman
@ 2007-12-03 12:09   ` Denis V. Lunev
  2007-12-03 17:03     ` Eric W. Biederman
  0 siblings, 1 reply; 4+ messages in thread
From: Denis V. Lunev @ 2007-12-03 12:09 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: Denis V. Lunev, herbert, devel, netdev, davem, xemul

[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]

you right, how about this?

Eric W. Biederman wrote:
> "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
> 
> 


[-- Attachment #2: 1.diff --]
[-- Type: text/plain, Size: 1027 bytes --]

diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index f285de6..2eaf204 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>
 
@@ -336,6 +335,8 @@ static inline int tcf_valid_offset(const struct sk_buff *skb,
 }
 
 #ifdef CONFIG_NET_CLS_IND
+#include <net/net_namespace.h>
+
 static inline int
 tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv)
 {
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h
  2007-12-03 12:09   ` Denis V. Lunev
@ 2007-12-03 17:03     ` Eric W. Biederman
  0 siblings, 0 replies; 4+ messages in thread
From: Eric W. Biederman @ 2007-12-03 17:03 UTC (permalink / raw)
  To: Denis V. Lunev; +Cc: Denis V. Lunev, herbert, devel, netdev, davem, xemul


Looks good to me.

Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>


Eric

"Denis V. Lunev" <den@sw.ru> writes:

> you right, how about this?
>
> Eric W. Biederman wrote:
>> "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
>> 
>> 
>
> diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
> index f285de6..2eaf204 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>
>  
> @@ -336,6 +335,8 @@ static inline int tcf_valid_offset(const struct sk_buff
> *skb,
>  }
>  
>  #ifdef CONFIG_NET_CLS_IND
> +#include <net/net_namespace.h>
> +
>  static inline int
>  tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv)
>  {
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-03 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-12-03 12:09   ` Denis V. Lunev
2007-12-03 17:03     ` Eric W. Biederman

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).