Skip to content

Commit

Permalink
hw/net: Remove unnecessary header includes
Browse files Browse the repository at this point in the history
Headers like "hw/loader.h" and "qemu/sockets.h" are not needed in
the hw/net/*.c files. And Some other headers are included via other
headers already, so we can drop them, too.

Signed-off-by: Thomas Huth <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
huth authored and jasowang committed Mar 5, 2018
1 parent 78cd6f7 commit b20219b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion hw/net/e1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "hw/pci/pci.h"
#include "net/net.h"
#include "net/checksum.h"
#include "hw/loader.h"
#include "sysemu/sysemu.h"
#include "sysemu/dma.h"
#include "qemu/iov.h"
Expand Down
3 changes: 0 additions & 3 deletions hw/net/lance.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
*/

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "net/net.h"
#include "qemu/timer.h"
#include "qemu/sockets.h"
#include "hw/sparc/sparc32_dma.h"
#include "hw/net/lance.h"
#include "trace.h"
Expand Down
2 changes: 0 additions & 2 deletions hw/net/ne2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
*/
#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "net/net.h"
#include "net/eth.h"
#include "ne2000.h"
#include "hw/loader.h"
#include "sysemu/sysemu.h"

/* debug NE2000 card */
Expand Down
1 change: 0 additions & 1 deletion hw/net/pcnet-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "qemu/osdep.h"
#include "hw/pci/pci.h"
#include "net/net.h"
#include "hw/loader.h"
#include "qemu/timer.h"
#include "sysemu/dma.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 0 additions & 1 deletion hw/net/pcnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "net/net.h"
#include "net/eth.h"
#include "qemu/timer.h"
#include "qemu/sockets.h"
#include "sysemu/sysemu.h"
#include "trace.h"

Expand Down
2 changes: 0 additions & 2 deletions hw/net/rtl8139.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@
#include "qemu/timer.h"
#include "net/net.h"
#include "net/eth.h"
#include "hw/loader.h"
#include "sysemu/sysemu.h"
#include "qemu/iov.h"

/* debug RTL8139 card */
//#define DEBUG_RTL8139 1
Expand Down
1 change: 0 additions & 1 deletion hw/net/xgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "hw/sysbus.h"
#include "qemu/log.h"
#include "net/net.h"
#include "net/checksum.h"

#ifdef DEBUG_XGMAC
#define DEBUGF_BRK(message, args...) do { \
Expand Down

0 comments on commit b20219b

Please sign in to comment.