]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
stubs: update replay-tools to match replay.h types
authorClaudio Fontana <cfontana@suse.de>
Mon, 4 Jul 2022 07:58:32 +0000 (09:58 +0200)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 21 Jul 2023 10:02:04 +0000 (11:02 +0100)
detected with GCC 13 [-Werror=enum-int-mismatch]

Solves Issue #1096.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Cc: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220704075832.31537-1-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit bb7e03cb5677b570c5966c7dd946f9ed7acd11bc)

stubs/replay-tools.c

index 43296b3d4eb756a63e68fc41b4649cc6e2f85114..f2e72bb225d6177d1bb7e433704fdef6034d05fe 100644 (file)
@@ -7,13 +7,14 @@ bool replay_events_enabled(void)
     return false;
 }
 
-int64_t replay_save_clock(unsigned int kind, int64_t clock, int64_t raw_icount)
+int64_t replay_save_clock(ReplayClockKind kind,
+                          int64_t clock, int64_t raw_icount)
 {
     abort();
     return 0;
 }
 
-int64_t replay_read_clock(unsigned int kind, int64_t raw_icount)
+int64_t replay_read_clock(ReplayClockKind kind, int64_t raw_icount)
 {
     abort();
     return 0;
@@ -48,11 +49,11 @@ void replay_mutex_unlock(void)
 {
 }
 
-void replay_register_char_driver(Chardev *chr)
+void replay_register_char_driver(struct Chardev *chr)
 {
 }
 
-void replay_chr_be_write(Chardev *s, uint8_t *buf, int len)
+void replay_chr_be_write(struct Chardev *s, uint8_t *buf, int len)
 {
     abort();
 }