Skip to contentSkip to conversation

xen: Clean up includes

PATCH In review Peter Maydell 4 participants 7 messages May 24, 2016 – Jun 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Clean up includes

Clean up includes so that osdep.h is included first and headers which it implies are not included manually.

This commit was created with scripts/clean-includes.

---
 hw/usb/xen-usb.c     | 5 +----
 include/hw/xen/xen.h | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
hw/usb/xen-usb.c +1 -4
index 664df04..8fa47ed 100644
@@ -19,13 +19,10 @@
  *  GNU GPL, version 2 or (at your option) any later version.
  */
 
+#include "qemu/osdep.h"
 #include <libusb.h>
-#include <stdio.h>
-#include <sys/types.h>
 #include <sys/mman.h>
-#include <sys/time.h>
 
-#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/config-file.h"
 #include "hw/sysbus.h"
include/hw/xen/xen.h +0 -1
index 6365483..b2cd992 100644
@@ -8,7 +8,6 @@
  */
 
 #include "qemu-common.h"
-#include "qemu/typedefs.h"
 #include "exec/cpu-common.h"
 #include "hw/irq.h"
 
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Peter Maydell

Clean up includes so that osdep.h is included first and headers which it implies are not included manually.

This commit was created with scripts/clean-includes.

---
 hw/usb/xen-usb.c     | 5 +----
 include/hw/xen/xen.h | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Reviewed-by on v1 1/1
#3 lore raw
In reply to Peter Maydell
Quoted 6 lines · Peter Maydell

Clean up includes so that osdep.h is included first and headers which it implies are not included manually.

This commit was created with scripts/clean-includes.

Added to my queue

Quoted 44 lines
 hw/usb/xen-usb.c     | 5 +----
 include/hw/xen/xen.h | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)
hw/usb/xen-usb.c +1 -4
index 664df04..8fa47ed 100644
@@ -19,13 +19,10 @@
  *  GNU GPL, version 2 or (at your option) any later version.
  */
 
+#include "qemu/osdep.h"
 #include <libusb.h>
-#include <stdio.h>
-#include <sys/types.h>
 #include <sys/mman.h>
-#include <sys/time.h>
 
-#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu/config-file.h"
 #include "hw/sysbus.h"
include/hw/xen/xen.h +0 -1
index 6365483..b2cd992 100644
@@ -8,7 +8,6 @@
  */
 
 #include "qemu-common.h"
-#include "qemu/typedefs.h"
 #include "exec/cpu-common.h"
 #include "hw/irq.h"
 
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#4 lore raw
Quoted 11 lines · Stefano Stabellini
Quoted 6 lines · Peter Maydell

Clean up includes so that osdep.h is included first and headers which it implies are not included manually.

This commit was created with scripts/clean-includes.

Added to my queue

Hi; did this patch get lost? You've done a xen pullreq since this but this patch wasn't in it.

thanks
-- PMM

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
Quoted 7 lines · Peter Maydell
Quoted 6 lines · Stefano Stabellini
Quoted 5 lines · Peter Maydell

Clean up includes so that osdep.h is included first and headers which it implies are not included manually.

This commit was created with scripts/clean-includes.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Added to my queue

Hi; did this patch get lost? You've done a xen pullreq since this but this patch wasn't in it.

I didn't lose it, I thought you had already committed it as 21cbfe5f37aaa3a13d3af28454e762c05be67429, but I realize now that although they have the same commit message, they are not the same patch.

I was wondering how it got upstream given that I didn't send a pull request for it. Mystery solved. Next time it might be good to avoid having multiple patches touching similar code with exactly the same commit description.

I'll send another pull request today.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 8 lines · Stefano Stabellini

I didn't lose it, I thought you had already committed it as 21cbfe5f37aaa3a13d3af28454e762c05be67429, but I realize now that although they have the same commit message, they are not the same patch.

I was wondering how it got upstream given that I didn't send a pull request for it. Mystery solved. Next time it might be good to avoid having multiple patches touching similar code with exactly the same commit description.

Mmm, unfortunate side effect of the commit message being automatically created by the clean-includes script.

-- PMM

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel