Skip to contentSkip to conversation

hostmem: fix build failure caused by qerror cleanups

PATCH In review Igor Mammedov 2 participants 3 messages Jun 25, 2015 – Jun 26, 2015 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hostmem: fix build failure caused by qerror cleanups

---
 backends/hostmem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
backends/hostmem.c +2 -1
index 4b5c53d..403be07 100644
@@ -15,6 +15,7 @@
 #include "qapi-visit.h"
 #include "qemu/config-file.h"
 #include "qom/object_interfaces.h"
+#include "qapi/qmp/qerror.h"
 
 #ifdef CONFIG_NUMA
 #include <numaif.h>
@@ -225,7 +226,7 @@ static void host_memory_backend_set_id(Object *obj, const char *id,
     HostMemoryBackend *backend = MEMORY_BACKEND(obj);
 
     if (backend->id) {
-        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "id",
+        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "id",
                   "can't change already set value");
         return;
     }
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 18 lines · Igor Mammedov
---
 backends/hostmem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
backends/hostmem.c +1 -0
index 4b5c53d..403be07 100644
@@ -15,6 +15,7 @@
 #include "qapi-visit.h"
 #include "qemu/config-file.h"
 #include "qom/object_interfaces.h"
+#include "qapi/qmp/qerror.h"
 
 #ifdef CONFIG_NUMA
 #include <numaif.h>

backends/hostmem.c static void host_memory_backend_set_id(Object *obj, const char *id, · line 232

Quoted 8 lines
backends/hostmem.c +1 -1
@@ -225,7 +226,7 @@ static void host_memory_backend_set_id(Object *obj, const char *id,
     HostMemoryBackend *backend = MEMORY_BACKEND(obj);
 
     if (backend->id) {
-        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "id",
+        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "id",
                   "can't change already set value");
         return;
     }

I can't see this code in master or on the list.

#2 lore raw
Quoted 22 lines · On Fri, 26 Jun 2015 11:11:16 +0200 Markus Armbruster <[email protected]> wrote:
Quoted 20 lines · Igor Mammedov
---
 backends/hostmem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
backends/hostmem.c +1 -0
index 4b5c53d..403be07 100644
@@ -15,6 +15,7 @@
 #include "qapi-visit.h"
 #include "qemu/config-file.h"
 #include "qom/object_interfaces.h"
+#include "qapi/qmp/qerror.h"
 
 #ifdef CONFIG_NUMA
 #include <numaif.h>
@@ -225,7 +226,7 @@ static void host_memory_backend_set_id(Object *obj, const char *id,
     HostMemoryBackend *backend = MEMORY_BACKEND(obj);
 
Quoted 9 lines

backends/hostmem.c static void host_memory_backend_set_id(Object *obj, const char *id, · line 232

Quoted 6 lines
backends/hostmem.c +1 -1
     if (backend->id) {
-        error_set(errp, QERR_INVALID_PARAMETER_VALUE, "id",
+        error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "id",
                   "can't change already set value");
         return;
     }

I can't see this code in master or on the list.

true, my local tree seems to be in a weird state.
I've just cloned fresh tree and there isn't any error_set left in that file. I'm sorry for noise.