From a928a438b8a005e5b6059bc5db0687bf64abcfa6 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 9 Nov 2016 14:27:40 -0600 Subject: 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. --- src/dev/arm/flash_device.cc | 1 + src/dev/mc146818.hh | 1 + src/dev/net/dist_iface.hh | 1 + src/dev/net/etherbus.cc | 1 + src/dev/net/etherswitch.cc | 2 ++ 5 files changed, 6 insertions(+) (limited to 'src/dev') diff --git a/src/dev/arm/flash_device.cc b/src/dev/arm/flash_device.cc index 63d232e80..3dc8d5bd2 100644 --- a/src/dev/arm/flash_device.cc +++ b/src/dev/arm/flash_device.cc @@ -54,6 +54,7 @@ #include "dev/arm/flash_device.hh" +#include "base/trace.hh" #include "debug/Drain.hh" /** diff --git a/src/dev/mc146818.hh b/src/dev/mc146818.hh index e19040ec3..8eb301c45 100644 --- a/src/dev/mc146818.hh +++ b/src/dev/mc146818.hh @@ -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) */ diff --git a/src/dev/net/dist_iface.hh b/src/dev/net/dist_iface.hh index a56b9a3bb..c02c39530 100644 --- a/src/dev/net/dist_iface.hh +++ b/src/dev/net/dist_iface.hh @@ -83,6 +83,7 @@ #include #include +#include "base/misc.hh" #include "dev/net/dist_packet.hh" #include "dev/net/etherpkt.hh" #include "sim/core.hh" diff --git a/src/dev/net/etherbus.cc b/src/dev/net/etherbus.cc index 042c4ec84..7ccb8a4ac 100644 --- a/src/dev/net/etherbus.cc +++ b/src/dev/net/etherbus.cc @@ -38,6 +38,7 @@ #include #include +#include "base/misc.hh" #include "base/trace.hh" #include "debug/Ethernet.hh" #include "debug/EthernetData.hh" diff --git a/src/dev/net/etherswitch.cc b/src/dev/net/etherswitch.cc index c9698cf63..995e29a0c 100644 --- a/src/dev/net/etherswitch.cc +++ b/src/dev/net/etherswitch.cc @@ -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; -- cgit v1.2.3