xtensa_lx60: add missing #include "blockdev.h"
PATCH 1/1 xtensa_lx60: add missing #include "blockdev.h"
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: implicit declaration of function 'drive_get' /home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: nested extern declaration of 'drive_get' /home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: 'IF_PFLASH' undeclared (first use in this function) /home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: (Each undeclared identifier is reported only once /home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: for each function it appears in.) /home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216: error: dereferencing pointer to incomplete type
--- hw/xtensa_lx60.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
hw/xtensa_lx60.c +1 -0
@@ -34,6 +34,7 @@#include "pc.h" #include "sysbus.h" #include "flash.h" +#include "blockdev.h" #include "xtensa_bootparam.h" typedef struct LxBoardDesc {
Signature · 1 line
1.7.7.6
Quoted 10 lines · Max Filippov
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216: error: dereferencing pointer to incomplete type
Quoted 4 lines
Signed-off-by Max Filippov <[email protected]>---
hw/xtensa_lx60.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)
Am 08.06.2012 12:08, schrieb Stefan Hajnoczi:
Quoted 11 lines · Max Filippov
Quoted 10 lines
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212: error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216: error: dereferencing pointer to incomplete type
Quoted 6 lines
Quoted 4 lines
Signed-off-by Max Filippov<[email protected]>--- hw/xtensa_lx60.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Reviewed-by Stefan Hajnoczi<[email protected]>
Strange, I don't see this problem here.
xtensa_lx60.c includes pc.h which includes fdc.h which includes blockdev.h, so this patch should not be needed.
What went wrong in your build, or are your sources different from qemu git master?
Regards,
Stefan Weil
Quoted 26 lines · Stefan Weil
Am 08.06.2012 12:08, schrieb Stefan Hajnoczi:
Quoted 24 lines · Max Filippov
Quoted 22 lines
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216:
error: dereferencing pointer to incomplete typeSigned-off-by Max Filippov<[email protected]>---
hw/xtensa_lx60.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 8 lines
Quoted 2 lines
Reviewed-by Stefan Hajnoczi<[email protected]>Strange, I don't see this problem here.
xtensa_lx60.cincludespc.hwhich includesfdc.hwhich includesblockdev.h, so this patch should not be needed.
Please check the buildbot output for more details on the failure:
http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/237
I still think this patch is an improvement because relying on pc.h -> fdc.h -> blockdev.h to get drive_get() and IF_PFLASH is very obscure and could break in the future if those headers change.
Stefan
Stefan Weil
Reviewed-byAm 08.06.2012 12:57, schrieb Stefan Hajnoczi:
Quoted 31 lines · Stefan Weil
Quoted 30 lines
Am 08.06.2012 12:08, schrieb Stefan Hajnoczi:
Quoted 26 lines · Max Filippov
Quoted 18 lines
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216:
error: dereferencing pointer to incomplete typeQuoted 4 lines
Signed-off-by Max Filippov<[email protected]>--- hw/xtensa_lx60.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Reviewed-by Stefan Hajnoczi<[email protected]>
Quoted 7 lines
Quoted 4 lines
Strange, I don't see this problem here.
xtensa_lx60.cincludespc.hwhich includesfdc.hwhich includesblockdev.h, so this patch should not be needed.Please check the buildbot output for more details on the failure:
http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/237
The build failure for all hosts is introduced by commit d39e6563312a8ea3fb436cd2c7e6893cf416f34e in Kevin's block-next.
Kevin, please add Max' patch before that commit. Stefan H. already reviewed the patch, and if you want, you can now also add
QEMU git master still uses the old code where blockdev.h is included by hw/fdc.h, that's why I did not get that problem.
Regards,
Stefan W.
Quoted 51 lines · Stefan Weil
Am 08.06.2012 12:57, schrieb Stefan Hajnoczi:
Quoted 37 lines · Stefan Weil
Quoted 36 lines
Am 08.06.2012 12:08, schrieb Stefan Hajnoczi:
Quoted 21 lines
Quoted 19 lines · Max Filippov
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216:
error: dereferencing pointer to incomplete typeQuoted 8 lines
Quoted 4 lines
Signed-off-by Max Filippov<[email protected]>---
hw/xtensa_lx60.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)Reviewed-by Stefan Hajnoczi<[email protected]>Strange, I don't see this problem here.
Quoted 7 lines
Quoted 3 lines
xtensa_lx60.cincludespc.hwhich includesfdc.hwhich includesblockdev.h,
so this patch should not be needed.Please check the buildbot output for more details on the failure:
http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/237The build failure for all hosts is introduced by commit
d39e6563312a8ea3fb436cd2c7e6893cf416f34ein Kevin's block-next.
Quoted 8 lines
Kevin, please add Max' patch before that commit. Stefan H. already reviewed the patch, and if you want, you can now also add
Reviewed-by Stefan Weil <[email protected]>.QEMU git master still uses the old code where
blockdev.his included byhw/fdc.h, that's why I did not get that problem.
Thanks for finding the cause. This makes sense now.
Stefan
Am 08.06.2012 14:05, schrieb Stefan Weil:
Quoted 43 lines
Am 08.06.2012 12:57, schrieb Stefan Hajnoczi:
Quoted 31 lines · Stefan Weil
Quoted 30 lines
Am 08.06.2012 12:08, schrieb Stefan Hajnoczi:
Quoted 26 lines · Max Filippov
Quoted 18 lines
This should fix the following build failure:
/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c: In function 'lx_init':/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: implicit declaration of function 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
warning: nested extern declaration of 'drive_get'/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: 'IF_PFLASH' undeclared (first use in this function)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: (Each undeclared identifier is reported only once/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:212:
error: for each function it appears in.)/home/buildbot/slave-public/block_mingw32/build/hw/xtensa_lx60.c:216:
error: dereferencing pointer to incomplete typeQuoted 4 lines
Signed-off-by Max Filippov<[email protected]>--- hw/xtensa_lx60.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Reviewed-by Stefan Hajnoczi<[email protected]>Quoted 7 lines
Quoted 4 lines
Strange, I don't see this problem here.
xtensa_lx60.cincludespc.hwhich includesfdc.hwhich includesblockdev.h, so this patch should not be needed.Please check the buildbot output for more details on the failure:
http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/237The build failure for all hosts is introduced by commit
d39e6563312a8ea3fb436cd2c7e6893cf416f34ein Kevin's block-next.
Quoted 8 lines
Kevin, please add Max' patch before that commit. Stefan H. already reviewed the patch, and if you want, you can now also add
Reviewed-by Stefan Weil <[email protected]>.QEMU git master still uses the old code where
blockdev.his included byhw/fdc.h, that's why I did not get that problem.
I already included Markus' patch in a pull request and Anthony said that he pulled, even though the commit doesn't appear in master yet. I'll take the patch into the block branch just in case, but I really think this should be handled by Anthony directly, who can possibly still save bisectability.
Kevin