hostmem: fix build failure caused by qerror cleanups
PATCH 1/1 hostmem: fix build failure caused by qerror cleanups
Signed-off-by Igor Mammedov <[email protected]>
--- backends/hostmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
backends/hostmem.c +2 -1
@@ -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
Quoted 18 lines · Igor Mammedov
Signed-off-by Igor Mammedov <[email protected]>--- backends/hostmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)backends/hostmem.c +1
-0@@ -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.
Quoted 22 lines · On Fri, 26 Jun 2015 11:11:16 +0200 Markus Armbruster <[email protected]> wrote:
Quoted 20 lines · Igor Mammedov
Signed-off-by Igor Mammedov <[email protected]>--- backends/hostmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)backends/hostmem.c +1
-0@@ -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
-1if (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.