diff --git a/arch/alpha/tlb.cc b/arch/alpha/tlb.cc index 877822c31d..05b02d74b9 100644 --- a/arch/alpha/tlb.cc +++ b/arch/alpha/tlb.cc @@ -26,7 +26,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include diff --git a/base/cprintf.hh b/base/cprintf.hh index dcb2924347..c468c375f8 100644 --- a/base/cprintf.hh +++ b/base/cprintf.hh @@ -31,13 +31,12 @@ #include #include -#include #include -namespace cp { - #include "base/cprintf_formats.hh" +namespace cp { + class ArgList { private: diff --git a/base/cprintf_formats.hh b/base/cprintf_formats.hh index 11b0238ede..05a8723a47 100644 --- a/base/cprintf_formats.hh +++ b/base/cprintf_formats.hh @@ -29,6 +29,11 @@ #ifndef __CPRINTF_FORMATS_HH__ #define __CPRINTF_FORMATS_HH__ +#include +#include + +namespace cp { + struct Format { bool alternate_form; @@ -343,4 +348,6 @@ inline void format_string(std::ostream &out, const std::stringstream &data, Format &fmt) { _format_string(out, data.str(), fmt); } +} // namespace cp + #endif // __CPRINTF_FORMATS_HH__ diff --git a/base/crc.cc b/base/crc.cc index 87963ef146..08f0395771 100644 --- a/base/crc.cc +++ b/base/crc.cc @@ -31,7 +31,6 @@ * SUCH DAMAGE. */ -#include #include #include "sim/host.hh" diff --git a/base/statistics.cc b/base/statistics.cc index c975646417..20de463472 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -31,7 +31,6 @@ #include #include #include -#include #include "base/callback.hh" #include "base/cprintf.hh" diff --git a/base/statistics.hh b/base/statistics.hh index c46744cac6..dd507c091a 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/base/stats/text.cc b/base/stats/text.cc index 3d77ff87d1..300737c60c 100644 --- a/base/stats/text.cc +++ b/base/stats/text.cc @@ -31,6 +31,7 @@ #endif #include +#include #include #include diff --git a/cpu/memtest/memtest.cc b/cpu/memtest/memtest.cc index 94b66b70ba..54def10128 100644 --- a/cpu/memtest/memtest.cc +++ b/cpu/memtest/memtest.cc @@ -30,7 +30,6 @@ #include #include -#include #include #include diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc index 33fe63c263..cb077e26cd 100644 --- a/cpu/simple/cpu.cc +++ b/cpu/simple/cpu.cc @@ -32,7 +32,6 @@ #include #include #include -#include #include #include "arch/utility.hh" diff --git a/dev/pcidev.cc b/dev/pcidev.cc index c40ef62e49..76392ccfe3 100644 --- a/dev/pcidev.cc +++ b/dev/pcidev.cc @@ -31,7 +31,6 @@ */ #include -#include #include #include diff --git a/sim/eventq.cc b/sim/eventq.cc index 0884db9940..4bfd6face8 100644 --- a/sim/eventq.cc +++ b/sim/eventq.cc @@ -30,7 +30,6 @@ #include #include -#include #include #include "cpu/smt.hh"