hw/timer/mc146818rtc: Only include qapi-commands-misc on I386
PATCH 1/1 hw/timer/mc146818rtc: Only include qapi-commands-misc on I386
Commit a6c7040fb09 restricted the rtc-reset-reinjection command to the I386 target.
Restrict the "qapi/qapi-commands-misc-target.h" header to it too.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/timer/mc146818rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/timer/mc146818rtc.c +1 -1
@@ -37,12 +37,12 @@#include "hw/timer/mc146818rtc.h" #include "migration/vmstate.h" #include "qapi/error.h" -#include "qapi/qapi-commands-misc-target.h" #include "qapi/qapi-events-misc-target.h" #include "qapi/visitor.h" #include "exec/address-spaces.h" #ifdef TARGET_I386 +#include "qapi/qapi-commands-misc-target.h" #include "hw/i386/apic.h" #endif
Signature · 1 line
2.21.0
Paolo Bonzini
AppliedQuoted 18 lines · Philippe Mathieu-Daudé
Commit
a6c7040fb09restricted the rtc-reset-reinjection command to the I386 target.
Restrict the "qapi/qapi-commands-misc-target.h" header to it too.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/timer/mc146818rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/timer/mc146818rtc.c +0
-0@@ -37,12 +37,12 @@#include "hw/timer/mc146818rtc.h" #include "migration/vmstate.h" #include "qapi/error.h"
hw/timer/mc146818rtc.c line 48
Quoted 10 lines
hw/timer/mc146818rtc.c +1
-1-#include "qapi/qapi-commands-misc-target.h" #include "qapi/qapi-events-misc-target.h" #include "qapi/visitor.h" #include "exec/address-spaces.h" #ifdef TARGET_I386 +#include "qapi/qapi-commands-misc-target.h" #include "hw/i386/apic.h" #endif
Queued, thanks.
Paolo