style: [patch 3/22] reduce include dependencies in some headers

Used cppclean to help identify useless includes and removed them. This
involved erroneously included headers, but also cases where forward
declarations could have been used rather than a full include.
This commit is contained in:
Brandon Potter
2016-11-09 14:27:40 -06:00
parent 93d8e6b898
commit a928a438b8
106 changed files with 203 additions and 166 deletions

View File

@@ -54,6 +54,7 @@
#include "dev/arm/flash_device.hh"
#include "base/trace.hh"
#include "debug/Drain.hh"
/**

View File

@@ -34,6 +34,7 @@
#define __DEV_MC146818_HH__
#include "base/bitunion.hh"
#include "base/misc.hh"
#include "sim/eventq_impl.hh"
/** Real-Time Clock (MC146818) */

View File

@@ -83,6 +83,7 @@
#include <thread>
#include <utility>
#include "base/misc.hh"
#include "dev/net/dist_packet.hh"
#include "dev/net/etherpkt.hh"
#include "sim/core.hh"

View File

@@ -38,6 +38,7 @@
#include <string>
#include <vector>
#include "base/misc.hh"
#include "base/trace.hh"
#include "debug/Ethernet.hh"
#include "debug/EthernetData.hh"

View File

@@ -36,7 +36,9 @@
#include "dev/net/etherswitch.hh"
#include "base/random.hh"
#include "base/trace.hh"
#include "debug/EthernetAll.hh"
#include "sim/core.hh"
using namespace std;