stub: Remove monitor-fd.c
PATCH 1/1 stub: Remove monitor-fd.c
Both monitor-fd.c and monitor-internal.c contain a stub for monitor_get_fd(), which causes a duplicate symbol linker error when linking rust-qemu-api-integration. Use monitor-internal.c instead of monitor-fd.c and remove the latter.
Reported-by Zhao Liu <[email protected]>
Suggested-by Zhao Liu <[email protected]>
Fixes fccb744f41c6 ("gdbstub: Try unlinking the unix socket before binding")
Signed-off-by Ilya Leoshkevich <[email protected]>
--- stubs/meson.build | 2 +- stubs/monitor-fd.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 stubs/monitor-fd.c
stubs/meson.build +1 -1
@@ -62,7 +62,7 @@ if have_user stub_ss.add(files('qdev.c')) endif - stub_ss.add(files('monitor-fd.c')) + stub_ss.add(files('monitor-internal.c')) endif if have_system
stubs/monitor-fd.c deleted +0 -9
@@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ - -#include "qemu/osdep.h" -#include "monitor/monitor.h" - -int monitor_get_fd (Monitor *mon,const char *fdname,Error **errp) -{ -abort (); -}
Signature · 1 line
2.48.1
Quoted 14 lines · Ilya Leoshkevich
Date: Mon, 17 Feb 2025 11:48:49 +0100
From: Ilya Leoshkevich <[email protected]>
Subject: [PATCH] stub: Removemonitor-fd.c
X-Mailer: git-send-email 2.48.1Both
monitor-fd.candmonitor-internal.ccontain a stub formonitor_get_fd(), which causes a duplicate symbol linker error when linking rust-qemu-api-integration. Usemonitor-internal.cinstead ofmonitor-fd.cand remove the latter.Reported-by Zhao Liu <[email protected]>Suggested-by Zhao Liu <[email protected]>Fixes fccb744f41c6 ("gdbstub: Try unlinking the unix socket before binding")Signed-off-by Ilya Leoshkevich <[email protected]>
Quoted 5 lines
--- stubs/meson.build | 2 +- stubs/monitor-fd.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 stubs/monitor-fd.c
Thanks Ilya! LGTM,
Reviewed-by Zhao Liu <[email protected]>
Paolo Bonzini
AppliedQueued, thanks.
Paolo