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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080605110252.GA1059@farnsworth.org>
Date:	Thu, 5 Jun 2008 04:02:52 -0700
From:	Dale Farnsworth <dale@...nsworth.org>
To:	Lennert Buytenhek <buytenh@...tstofly.org>
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 02/39] mv643xx_eth: trim unnecessary includes

On Tue, Jun 03, 2008 at 01:02:17PM +0200, Lennert Buytenhek wrote:
> Signed-off-by: Lennert Buytenhek <buytenh@...vell.com>
> ---
>  drivers/net/mv643xx_eth.c |   18 +-----------------
>  1 files changed, 1 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
> index 835b85d..c04058c 100644
> --- a/drivers/net/mv643xx_eth.c
> +++ b/drivers/net/mv643xx_eth.c
> @@ -34,34 +34,18 @@
>   * along with this program; if not, write to the Free Software
>   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
>   */
> -#include <linux/init.h>
> -#include <linux/dma-mapping.h>
> +
>  #include <linux/in.h>
> -#include <linux/ip.h>
>  #include <linux/tcp.h>
>  #include <linux/udp.h>
>  #include <linux/etherdevice.h>
> -
> -#include <linux/bitops.h>
> -#include <linux/delay.h>
>  #include <linux/ethtool.h>
>  #include <linux/platform_device.h>
> -
>  #include <linux/module.h>
> -#include <linux/kernel.h>
>  #include <linux/spinlock.h>
> -#include <linux/workqueue.h>

Isn't this needed for the definition of struct work and schedule_work()?

>  #include <linux/mii.h>
> -
>  #include <linux/mv643xx_eth.h>
>  
> -#include <asm/io.h>
> -#include <asm/types.h>
> -#include <asm/pgtable.h>
> -#include <asm/system.h>
> -#include <asm/delay.h>

Don't we still need this for udelay()?
> -#include <asm/dma-mapping.h>

And this for dma_map_single, etc.

I didn't bother to check all the other includes being removed, but it
seems you may have been a bit overly aggressive.

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