Skip to contentSkip to conversation

hmp queue

GIT PULL Applied Dr. David Alan Gilbert (git) 2 participants 3 messages Jul 15, 2019

lore
Share & tools
lore
#0 lore raw

From: "Dr. David Alan Gilbert" <[email protected]>

The following changes since commit 298ad7b5a4519d2ae547df46103b2f8d49ca6f95:

Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20190714' into staging (2019-07-15 09:46:15 +0100)

are available in the Git repository at:

git://github.com/dagrh/qemu.git tags/pull-hmp-20190715

for you to fetch changes up to ea73f37062a9012a4f151f47f2427011b18569c8:

Fix build error when VNC is configured out (2019-07-15 11:26:26 +0100)

----------------------------------------------------------------
HMP pull 2019-07-15

Just Christophe's build fix

----------------------------------------------------------------
Christophe de Dinechin (1):
Fix build error when VNC is configured out

 monitor/hmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] Fix build error when VNC is configured out

From: Christophe de Dinechin <[email protected]>

In hmp_change(), the variable hmp_mon is only used by code under #ifdef CONFIG_VNC. This results in a build error when VNC is configured out with the default of treating warnings as errors:

monitor/hmp-cmds.c: In function ‘hmp_change’:
monitor/hmp-cmds.c:1946:17: error: unused variable ‘hmp_mon’ [-Werror=unused-variable]

1946 |     MonitorHMP *hmp_mon = container_of(mon, MonitorHMP, common);
     |                 ^~~~~~~

Message-Id: <[email protected]>

---
 monitor/hmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
monitor/hmp-cmds.c +1 -1
index 99ceb0846b..5ca3ebe942 100644
@@ -1962,7 +1962,6 @@ static void hmp_change_read_arg(void *opaque, const char *password,
 
 void hmp_change(Monitor *mon, const QDict *qdict)
 {
-    MonitorHMP *hmp_mon = container_of(mon, MonitorHMP, common);
     const char *device = qdict_get_str(qdict, "device");
     const char *target = qdict_get_str(qdict, "target");
     const char *arg = qdict_get_try_str(qdict, "arg");
@@ -1980,6 +1979,7 @@ void hmp_change(Monitor *mon, const QDict *qdict)
         if (strcmp(target, "passwd") == 0 ||
             strcmp(target, "password") == 0) {
             if (!arg) {
+                MonitorHMP *hmp_mon = container_of(mon, MonitorHMP, common);
                 monitor_read_password(hmp_mon, hmp_change_read_arg, NULL);
                 return;
             }
Signature · 1 line
2.21.0
#2 lore raw
In reply to Dr. David Alan Gilbert (git)
Quoted 13 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

The following changes since commit 298ad7b5a4519d2ae547df46103b2f8d49ca6f95:

Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20190714' into staging (2019-07-15 09:46:15 +0100)

are available in the Git repository at:

git://github.com/dagrh/qemu.git tags/pull-hmp-20190715

for you to fetch changes up to ea73f37062a9012a4f151f47f2427011b18569c8:

Quoted 8 lines

Fix build error when VNC is configured out (2019-07-15 11:26:26 +0100)

----------------------------------------------------------------
HMP pull 2019-07-15

Just Christophe's build fix

----------------------------------------------------------------

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.

-- PMM