Latest "git" version fails to compile on Linux host
./configure --enable-linux-aio --enable-io-thread --enable-kvm
make
.../home/njh/src/qemu/cpus.c:532: error: ‘exit_request’ undeclared (first use in this function) /home/njh/src/qemu/cpus.c:532: error: (Each undeclared identifier is reported only once /home/njh/src/qemu/cpus.c:532: error: for each function it appears in.)
Perhaps cpus.c needs to have:
extern volatile sig_atomic_t exit_request;
-Nigel
PATCH 1/1 Fix io-thread build breakage of a88790a14f
Quoted 9 lines · Nigel Horne
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
.../home/njh/src/qemu/cpus.c:532: error: ‘exit_request’ undeclared (first use in this function)/home/njh/src/qemu/cpus.c:532: error: (Each undeclared identifier is reported only once/home/njh/src/qemu/cpus.c:532: error: for each function it appears in.)
Quoted 3 lines
Perhaps
cpus.cneeds to have:extern volatile
sig_atomic_texit_request;
Better include the header:
---------->
--- cpus.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
cpus.c +1 -0
@@ -30,6 +30,7 @@#include "gdbstub.h" #include "dma.h" #include "kvm.h" +#include "exec-all.h" #include "cpus.h"
Signature · 1 line
1.7.1
Anthony Liguori
AppliedRe: [Qemu-devel] [PATCH] Fix io-thread build breakage of a88790a14f
Quoted 13 lines · Jan Kiszka
Quoted 11 lines · Nigel Horne
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
.../home/njh/src/qemu/cpus.c:532: error: ‘exit_request’ undeclared (first use in this function)/home/njh/src/qemu/cpus.c:532: error: (Each undeclared identifier is reported only once/home/njh/src/qemu/cpus.c:532: error: for each function it appears in.)Perhaps
cpus.cneeds to have:
Quoted 8 lines
Quoted 2 lines
extern volatile
sig_atomic_texit_request;Better include the header:
---------->
Signed-off-by Jan Kiszka<[email protected]>
Applied. Thanks.
In the future, please try to avoid quoting in like this. I often forget to remove it from the commit message before pushing (although I did in this case).
Regards,
Anthony Liguori
Quoted 17 lines
--- cpus.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)cpus.c +1
-0@@ -30,6 +30,7 @@#include "gdbstub.h" #include "dma.h" #include "kvm.h" +#include "exec-all.h" #include "cpus.h"
Re: [Qemu-devel] [PATCH] Fix io-thread build breakage of a88790a14f
Quoted 20 lines · Anthony Liguori
Quoted 19 lines · Jan Kiszka
Quoted 9 lines · Nigel Horne
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
.../home/njh/src/qemu/cpus.c:532: error: ‘exit_request’ undeclared (first use in this function)/home/njh/src/qemu/cpus.c:532: error: (Each undeclared identifier is reported only once/home/njh/src/qemu/cpus.c:532: error: for each function it appears in.)Quoted 4 lines
Perhaps
cpus.cneeds to have:extern volatile
sig_atomic_texit_request;Better include the header:
---------->
Quoted 8 lines
Quoted 2 lines
Signed-off-by Jan Kiszka<[email protected]>Applied. Thanks.
In the future, please try to avoid quoting in like this. I often forget to remove it from the commit message before pushing (although I did in this case).
OK.
Note that there is also 'git am -c' - but I used a non-standard scissors line here...
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux