Skip to contentSkip to conversation

block/archipelago: Make it compile

PATCH In review Max Reitz 4 participants 8 messages Mar 8, 2017 Block layer

lore
Share & tools
lore

Max Reitz

author
#0 lore raw

PATCH 1/1 block/archipelago: Make it compile

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)
block/archipelago.c +1 -0
index 2449cfc702..01c4ff2f7d 100644
@@ -55,6 +55,7 @@
 #include "block/block_int.h"
 #include "qemu/error-report.h"
 #include "qemu/thread.h"
+#include "qapi/error.h"
 #include "qapi/qmp/qint.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
Signature · 1 line
2.12.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Max Reitz

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)

Does this mean our automated buildbots aren't building archipelago by default?

Quoted 14 lines
block/archipelago.c +1 -0
index 2449cfc702..01c4ff2f7d 100644
@@ -55,6 +55,7 @@
 #include "block/block_int.h"
 #include "qemu/error-report.h"
 #include "qemu/thread.h"
+#include "qapi/error.h"
 #include "qapi/qmp/qint.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
author
#2 lore raw
Quoted 9 lines · Eric Blake
Quoted 7 lines · Max Reitz

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 4 lines

Does this mean our automated buildbots aren't building archipelago by default?

Well, at least patchew didn't catch that I definitely broke archipelago in my bdrv_truncate() errp series...

[CC-ing Fam]

Max

#3 lore raw
In reply to Eric Blake
Quoted 9 lines · Eric Blake
Quoted 7 lines · Max Reitz

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 5 lines

Does this mean our automated buildbots aren't building archipelago by default?

Oh, I meant to add:

Should probably mention that it was commit da34e65 that introduced the problem (if I'm right?). Does that mean we have not been compiling archipelago.c since Mar 2016?

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
author
#4 lore raw
Quoted 16 lines · Eric Blake
Quoted 9 lines · Eric Blake
Quoted 7 lines · Max Reitz

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 5 lines

Does this mean our automated buildbots aren't building archipelago by default?

Quoted 5 lines

Oh, I meant to add:

Should probably mention that it was commit da34e65 that introduced the problem (if I'm right?). Does that mean we have not been compiling archipelago.c since Mar 2016?

At least here on my machine it does indeed compile before that commit and fails afterwards. So, yes, maybe we actually have not. :-)

Max

#7 lore raw
In reply to Eric Blake
Quoted 10 lines · Eric Blake
Quoted 7 lines · Max Reitz

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 19 lines

Does this mean our automated buildbots aren't building archipelago by default?

Quoted 14 lines
block/archipelago.c +1 -0
index 2449cfc702..01c4ff2f7d 100644
@@ -55,6 +55,7 @@
 #include "block/block_int.h"
 #include "qemu/error-report.h"
 #include "qemu/thread.h"
+#include "qapi/error.h"
 #include "qapi/qmp/qint.h"
 #include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
#5 lore raw
In reply to Max Reitz

Am 08.03.2017 um 19:32 hat Max Reitz geschrieben:

Quoted 17 lines · Eric Blake
Quoted 16 lines · Eric Blake
Quoted 14 lines · Max Reitz
Quoted 7 lines

In order to use error_setg() and similar functions, we need to include qapi/error.h.

---
 block/archipelago.c | 1 +
 1 file changed, 1 insertion(+)

Does this mean our automated buildbots aren't building archipelago by default?

Quoted 8 lines
Quoted 5 lines

Oh, I meant to add:

Should probably mention that it was commit da34e65 that introduced the problem (if I'm right?). Does that mean we have not been compiling archipelago.c since Mar 2016?

At least here on my machine it does indeed compile before that commit and fails afterwards. So, yes, maybe we actually have not. :-)

In that case, maybe we should rather remove the driver because very obviously nobody is interested in it, not even the maintainer. Keeping things around that nobody tests (and consequently, nobody uses) is just a useless maintenance burden.

Kevin

#6 lore raw
Quoted 6 lines · Kevin Wolf
Quoted 6 lines
Quoted 5 lines

Oh, I meant to add:

Should probably mention that it was commit da34e65 that introduced the problem (if I'm right?). Does that mean we have not been compiling archipelago.c since Mar 2016?

Quoted 7 lines
Quoted 2 lines

At least here on my machine it does indeed compile before that commit and fails afterwards. So, yes, maybe we actually have not. :-)

In that case, maybe we should rather remove the driver because very obviously nobody is interested in it, not even the maintainer. Keeping things around that nobody tests (and consequently, nobody uses) is just a useless maintenance burden.

We've released 2.6, 2.7, and 2.8 with no complaints about failure to compile. Sounds like a good candidate for removal in 2.9.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org