lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <m1k5nv1zih.fsf@ebiederm.dsl.xmission.com>
Date:	Mon, 03 Dec 2007 10:03:50 -0700
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	"Denis V. Lunev" <den@...ru>
Cc:	"Denis V. Lunev" <den@...nvz.org>, herbert@...dor.apana.org.au,
	devel@...nvz.org, netdev@...r.kernel.org, davem@...emloft.net,
	xemul@...nvz.org
Subject: Re: [PATCH 2.6.25] net: removes unnecessary dependencies for net_namespace.h


Looks good to me.

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


Eric

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

> you right, how about this?
>
> Eric W. Biederman wrote:
>> "Denis V. Lunev" <den@...nvz.org> writes:
>> 
>>> This patch removes some unneeded includes for net_namespace.h to speed up
>>> compilation.
>>>
>>> Signed-off-by: Denis V. Lunev <den@...nvz.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ