Skip to contentSkip to conversation

net/tap-solaris.c: Include qemu-common.h for TFR macro

PATCH Applied Peter Maydell 6 participants 9 messages Jul 4, 2020 – Jul 7, 2020 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/tap-solaris.c: Include qemu-common.h for TFR macro

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
 #include <sys/ethernet.h>
 #include <sys/sockio.h>
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Peter Maydell

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +0 -0
index 4725d2314ee..d03165c57c9 100644

net/tap-solaris.c line 33

Quoted 7 lines
net/tap-solaris.c +1 -0
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
 #include <sys/ethernet.h>
 #include <sys/sockio.h>
Reviewed-by on v1 1/1
#2 lore raw
In reply to Peter Maydell
Quoted 20 lines · Peter Maydell

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +0 -0
index 4725d2314ee..d03165c57c9 100644

net/tap-solaris.c line 33

Quoted 7 lines
net/tap-solaris.c +1 -0
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
 #include <sys/ethernet.h>
 #include <sys/sockio.h>
#3 lore raw
Quoted 25 lines · Thomas Huth
Quoted 24 lines · Peter Maydell

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
  net/tap-solaris.c | 1 +
  1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
  #include "tap_int.h"
  #include "qemu/ctype.h"
  #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
  #include<sys/ethernet.h>
  #include<sys/sockio.h>

I can confirm that this works in Solaris 11.4:

root@hemlock:~/qemu-5.0.0# gpatch -p1 < tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#

- Michele

#4 lore raw

Le 04/07/2020 à 20:13, Michele Denber a écrit :

Quoted 26 lines · Thomas Huth
Quoted 25 lines · Peter Maydell
Quoted 24 lines

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 8 lines
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
 #include <sys/ethernet.h>
 #include <sys/sockio.h>

I can confirm that this works in Solaris 11.4:

root@hemlock:~/qemu-5.0.0# gpatch -p1 < tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#

Do you mean building on Solaris hosts works well now?

In this case, you can add a "Tested-by:" tag.

Thanks,
Laurent

Tested-by Michele Denber
#5 lore raw
Quoted 32 lines · Laurent Vivier
Quoted 31 lines · Michele Denber
Quoted 25 lines · Thomas Huth
Quoted 24 lines · Peter Maydell

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
 #include <sys/ethernet.h>
 #include <sys/sockio.h>

I can confirm that this works in Solaris 11.4:

Quoted 5 lines
Quoted 3 lines
root@hemlock:~/qemu-5.0.0# gpatch -p1 < tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#

Do you mean building on Solaris hosts works well now?

This only shows the patch applies properly, but ...

Quoted 2 lines

In this case, you can add a "Tested-by:" tag.

Here after you have the confirmation the patch worked:
https://www.mail-archive.com/[email protected]/msg720033.html
So IMO this is worth a:

Quoted 5 lines

Thanks,
Laurent

#6 lore raw

Le 06/07/2020 à 19:56, Philippe Mathieu-Daudé a écrit :

Quoted 42 lines · Laurent Vivier
Quoted 32 lines · Michele Denber
Quoted 31 lines · Thomas Huth
Quoted 25 lines · Peter Maydell
Quoted 24 lines

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
 net/tap-solaris.c | 1 +
 1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
 #include "tap_int.h"
 #include "qemu/ctype.h"
 #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
 #include <sys/ethernet.h>
 #include <sys/sockio.h>

I can confirm that this works in Solaris 11.4:

Quoted 5 lines
Quoted 3 lines
root@hemlock:~/qemu-5.0.0# gpatch -p1 < tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#

Do you mean building on Solaris hosts works well now?

This only shows the patch applies properly, but ...

Quoted 1 line
Quoted 7 lines
Quoted 1 line

In this case, you can add a "Tested-by:" tag.

Here after you have the confirmation the patch worked:
https://www.mail-archive.com/[email protected]/msg720033.html
So IMO this is worth a:

Thank you.

Applied to my trivial-patches-for-5.1 branch.

Thanks,
Laurent

#7 lore raw
In reply to Laurent Vivier
Quoted 32 lines · Laurent Vivier
Quoted 31 lines · Michele Denber
Quoted 25 lines · Thomas Huth
Quoted 24 lines · Peter Maydell

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header so that it was always included from .c files and never from other .h files. We missed adding it to net/tap-solaris.c (which previously was pulling it in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?

---
  net/tap-solaris.c | 1 +
  1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
  #include "tap_int.h"
  #include "qemu/ctype.h"
  #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
  #include<sys/ethernet.h>
  #include<sys/sockio.h>

I can confirm that this works in Solaris 11.4:

Quoted 4 lines
Quoted 3 lines
root@hemlock:~/qemu-5.0.0# gpatch -p1<  tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#

Do you mean building on Solaris hosts works well now?

In that message I meant that the tap-solaris patch worked. However, yes, I have now successfully built all of QEMU 5.0 on Solaris 11.4 SPARC.

Quoted 2 lines

In this case, you can add a "Tested-by:" tag.

I'd be glad to but how do I do that?

- Michele

#8 lore raw

Le 07/07/2020 à 17:23, Michele Denber a écrit :

Quoted 41 lines · Laurent Vivier
Quoted 38 lines · Michele Denber
Quoted 37 lines · Thomas Huth
Quoted 28 lines · Peter Maydell
Quoted 27 lines

In commit a8d2532645cf5ce4 we cleaned up usage of the qemu-common.h header
so that it was always included from .c files and never from other .h files.
We missed adding it to net/tap-solaris.c (which previously was pulling it
in via tap-int.h), which broke building on Solaris hosts.

Fixes a8d2532645cf5ce4

---
Untested: Michele, could you give this a try?
---
  net/tap-solaris.c | 1 +

  1 file changed, 1 insertion(+)
net/tap-solaris.c +1 -0
index 4725d2314ee..d03165c57c9 100644
@@ -27,6 +27,7 @@
   #include "tap_int.h"
   #include "qemu/ctype.h"
   #include "qemu/cutils.h"
+#include "qemu-common.h"
 
Quoted 3 lines

net/tap-solaris.c line 33

Quoted 3 lines
net/tap-solaris.c +0 -0
   #include<sys/ethernet.h>
   #include<sys/sockio.h>

I can confirm that this works in Solaris 11.4:

root@hemlock:~/qemu-5.0.0# gpatch -p1<  tap-solaris.patch.diff
patching file net/tap-solaris.c
root@hemlock:~/qemu-5.0.0#
Quoted 6 lines
Quoted 1 line

Do you mean building on Solaris hosts works well now?

In that message I meant that the tap-solaris patch worked.  However, yes, I have now successfully built all of QEMU 5.0 on Solaris 11.4 SPARC.

Quoted 2 lines

In this case, you can add a "Tested-by:" tag.

I'd be glad to but how do I do that?

Philippe has already pointed out your message with all the details.

The "Tested-by:" tag has been added by Philippe when he replied to the message with the tag and your name.

The patch is now merged in QEMU.

Thanks,
Laurent