]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hyperv: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2024 16:34:00 +0000 (16:34 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 30 Jan 2024 18:20:20 +0000 (21:20 +0300)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git hyperv hw/hyperv/*.[ch]

All .c should include qemu/osdep.h first.  The script performs three
related cleanups:

* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c  already includes
  it.  Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
  Drop these, too.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/hyperv/hv-balloon-internal.h
hw/hyperv/hv-balloon-our_range_memslots.c
hw/hyperv/hv-balloon-our_range_memslots.h
hw/hyperv/hv-balloon-page_range_tree.c
hw/hyperv/hv-balloon-page_range_tree.h
hw/hyperv/hv-balloon.c

index 164c2e5825393b9ee740bad1c01b536e0c168097..ee53a28a26679b5b3384fb6370c59ff69288b292 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef HW_HYPERV_HV_BALLOON_INTERNAL_H
 #define HW_HYPERV_HV_BALLOON_INTERNAL_H
 
-#include "qemu/osdep.h"
 
 #define HV_BALLOON_PFN_SHIFT 12
 #define HV_BALLOON_PAGE_SIZE (1 << HV_BALLOON_PFN_SHIFT)
index 99bae870f371f36cc437cf8edfb97fe739ee5fc1..1505a395cf7da5fa134a1a1610ea698a2eec07fa 100644 (file)
@@ -7,6 +7,7 @@
  * See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include "hv-balloon-internal.h"
 #include "hv-balloon-our_range_memslots.h"
 #include "trace.h"
index b6f592d34b09aa4478ad6d399e855e03fc9ef0df..df3b686bc7c251aa0808cdd1509c8b046efb36f9 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef HW_HYPERV_HV_BALLOON_OUR_RANGE_MEMSLOTS_H
 #define HW_HYPERV_HV_BALLOON_OUR_RANGE_MEMSLOTS_H
 
-#include "qemu/osdep.h"
 
 #include "exec/memory.h"
 #include "qom/object.h"
index e178d8b413c709274098f03ae9ff2ce8263da6e5..dfb14852f42b080b1de2b24319e329b46a7cbe46 100644 (file)
@@ -7,6 +7,7 @@
  * See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include "hv-balloon-internal.h"
 #include "hv-balloon-page_range_tree.h"
 
index 07a9ae0da6113ce5fed2e2ee0e3bd10aad8f5633..333772b86d2b92b7cb73a0eef7e9bf490d35632b 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef HW_HYPERV_HV_BALLOON_PAGE_RANGE_TREE_H
 #define HW_HYPERV_HV_BALLOON_PAGE_RANGE_TREE_H
 
-#include "qemu/osdep.h"
 
 /* PageRange */
 typedef struct PageRange {
index 66f297c1d7e3d93d8d87b54e5df608df84318b2b..02383657124079acbf1f7d9344711164204e39ec 100644 (file)
@@ -7,6 +7,7 @@
  * See the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include "hv-balloon-internal.h"
 
 #include "exec/address-spaces.h"