]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/rtc/mc146818: Include mc146818rtc_regs.h a bit less
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Oct 2019 23:04:02 +0000 (01:04 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 24 Oct 2019 18:33:07 +0000 (20:33 +0200)
Only 2 source files require the "mc146818rtc_regs.h" header.
Instead of having it processed 12 times, by all objects
using "mc146818rtc.h", include it directly where used.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191003230404.19384-13-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/rtc/mc146818rtc.c
hw/timer/hpet.c
include/hw/rtc/mc146818rtc.h

index ced15f764fc102e021ea1c78f155763ce8e48c59..9d4ed54f65e215300ff3902e9a7cf5c9442bce12 100644 (file)
@@ -35,6 +35,7 @@
 #include "sysemu/reset.h"
 #include "sysemu/runstate.h"
 #include "hw/rtc/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc_regs.h"
 #include "migration/vmstate.h"
 #include "qapi/error.h"
 #include "qapi/qapi-commands-misc-target.h"
index 02bf8a8ce8fc5c7643be5517694e6d7e22e806fc..9f17aaa278e2a10de7e21e47bde5d52054a6a4f4 100644 (file)
@@ -34,6 +34,7 @@
 #include "hw/timer/hpet.h"
 #include "hw/sysbus.h"
 #include "hw/rtc/mc146818rtc.h"
+#include "hw/rtc/mc146818rtc_regs.h"
 #include "migration/vmstate.h"
 #include "hw/timer/i8254.h"
 
index 2e9331637a6d6a1676c23e162eb7339860196fb5..7fa59d4279c5d35e94d08a534e38800e240eefed 100644 (file)
@@ -10,7 +10,6 @@
 #define HW_RTC_MC146818RTC_H
 
 #include "hw/isa/isa.h"
-#include "hw/rtc/mc146818rtc_regs.h"
 
 #define TYPE_MC146818_RTC "mc146818rtc"