Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Remove unnecessary #includes.
details: https://anonhg.NetBSD.org/src/rev/e381b1a992b8
branches: trunk
changeset: 747041:e381b1a992b8
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Aug 29 14:18:34 2009 +0000
description:
Remove unnecessary #includes.
diffstat:
sys/dev/cardbus/if_re_cardbus.c | 28 ++--------------------------
sys/dev/pci/if_re_pci.c | 16 ++--------------
2 files changed, 4 insertions(+), 40 deletions(-)
diffs (97 lines):
diff -r e98077c6e189 -r e381b1a992b8 sys/dev/cardbus/if_re_cardbus.c
--- a/sys/dev/cardbus/if_re_cardbus.c Sat Aug 29 14:06:22 2009 +0000
+++ b/sys/dev/cardbus/if_re_cardbus.c Sat Aug 29 14:18:34 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_re_cardbus.c,v 1.18 2008/06/24 19:44:52 drochner Exp $ */
+/* $NetBSD: if_re_cardbus.c,v 1.19 2009/08/29 14:18:34 tsutsui Exp $ */
/*
* Copyright (c) 2004 Jonathan Stone
@@ -36,38 +36,15 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_re_cardbus.c,v 1.18 2008/06/24 19:44:52 drochner Exp $");
-
-#include "opt_inet.h"
-#include "bpfilter.h"
-#include "rnd.h"
+__KERNEL_RCSID(0, "$NetBSD: if_re_cardbus.c,v 1.19 2009/08/29 14:18:34 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/callout.h>
#include <sys/device.h>
-#include <sys/sockio.h>
-#include <sys/mbuf.h>
-#include <sys/malloc.h>
-#include <sys/kernel.h>
-#include <sys/socket.h>
#include <net/if.h>
-#include <net/if_arp.h>
#include <net/if_ether.h>
-#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
-#include <netinet/in.h>
-#include <netinet/if_inarp.h>
-#endif
-
-#if NBPFILTER > 0
-#include <net/bpf.h>
-#endif
-#if NRND > 0
-#include <sys/rnd.h>
-#endif
#include <sys/bus.h>
@@ -76,7 +53,6 @@
#include <dev/pci/pcidevs.h>
#include <dev/cardbus/cardbusvar.h>
-#include <dev/pci/pcidevs.h>
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
diff -r e98077c6e189 -r e381b1a992b8 sys/dev/pci/if_re_pci.c
--- a/sys/dev/pci/if_re_pci.c Sat Aug 29 14:06:22 2009 +0000
+++ b/sys/dev/pci/if_re_pci.c Sat Aug 29 14:18:34 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_re_pci.c,v 1.36 2009/04/25 06:16:12 tsutsui Exp $ */
+/* $NetBSD: if_re_pci.c,v 1.37 2009/08/29 14:18:34 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -46,29 +46,17 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_re_pci.c,v 1.36 2009/04/25 06:16:12 tsutsui Exp $");
-
-#include "bpfilter.h"
-#include "vlan.h"
+__KERNEL_RCSID(0, "$NetBSD: if_re_pci.c,v 1.37 2009/08/29 14:18:34 tsutsui Exp $");
#include <sys/types.h>
#include <sys/param.h>
-#include <sys/endian.h>
#include <sys/systm.h>
-#include <sys/sockio.h>
-#include <sys/mbuf.h>
-#include <sys/malloc.h>
-#include <sys/kernel.h>
-#include <sys/socket.h>
#include <sys/device.h>
#include <net/if.h>
-#include <net/if_arp.h>
-#include <net/if_dl.h>
#include <net/if_ether.h>
#include <net/if_media.h>
-#include <net/if_vlanvar.h>
#include <sys/bus.h>
Home |
Main Index |
Thread Index |
Old Index