Skip to contentSkip to conversation

include: Cleanups around 'exec/cpu-common.h' header

PATCH In review Philippe Mathieu-Daudé 3 participants 9 messages Dec 17, 2024 – Dec 19, 2024

lore
Share & tools
lore
#0 lore raw

cover include: Cleanups around 'exec/cpu-common.h' header

Do not include "exec/cpu-common.h" when we don't need it.

(I plan to merge this series myself).

Philippe Mathieu-Daudé (3):
hw/xen: Remove unnecessary 'exec/cpu-common.h' header system/numa: Remove unnecessary 'exec/cpu-common.h' header system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header

 include/hw/xen/xen.h       | 2 --
 include/sysemu/accel-ops.h | 2 +-
 include/sysemu/numa.h      | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)
Signature · 1 line
2.45.2
#1 lore raw

PATCH 1/3 hw/xen: Remove unnecessary 'exec/cpu-common.h' header

Nothing requires definitions from "exec/cpu-common.h", do not include this header.

---
 include/hw/xen/xen.h | 2 --
 1 file changed, 2 deletions(-)
include/hw/xen/xen.h +0 -2
index ecb89ecfc14..e94c6e5a318 100644
@@ -24,8 +24,6 @@
 #define __XEN_INTERFACE_VERSION__ 0x00040e00
 #endif
 
-#include "exec/cpu-common.h"
-
 /* xen-machine.c */
 enum xen_mode {
     XEN_DISABLED = 0, /* xen support disabled (default) */
Signature · 1 line
2.45.2
Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] hw/xen: Remove unnecessary 'exec/cpu-common.h' header

Quoted 5 lines · Philippe Mathieu-Daudé

Date: Tue, 17 Dec 2024 16:13:03 +0100
From: Philippe Mathieu-Daudé <[email protected]>
Subject: [PATCH 1/3] hw/xen: Remove unnecessary 'exec/cpu-common.h' header
X-Mailer: git-send-email 2.45.2

Quoted 8 lines

Nothing requires definitions from "exec/cpu-common.h", do not include this header.

---
 include/hw/xen/xen.h | 2 --
 1 file changed, 2 deletions(-)
#3 lore raw

PATCH 2/3 system/numa: Remove unnecessary 'exec/cpu-common.h' header

In reply to Philippe Mathieu-Daudé

Nothing requires definitions from "exec/cpu-common.h", do not include this header.

---
 include/sysemu/numa.h | 1 -
 1 file changed, 1 deletion(-)
include/sysemu/numa.h +0 -1
index 04676141470..1338db9502d 100644
@@ -3,7 +3,6 @@
 
 #include "qemu/bitmap.h"
 #include "qapi/qapi-types-machine.h"
-#include "exec/cpu-common.h"
 
 struct CPUArchId;
 
Signature · 1 line
2.45.2
Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] system/numa: Remove unnecessary 'exec/cpu-common.h' header

Quoted 6 lines · Philippe Mathieu-Daudé

Date: Tue, 17 Dec 2024 16:13:04 +0100
From: Philippe Mathieu-Daudé <[email protected]>
Subject: [PATCH 2/3] system/numa: Remove unnecessary 'exec/cpu-common.h'
header
X-Mailer: git-send-email 2.45.2

Quoted 7 lines

Nothing requires definitions from "exec/cpu-common.h", do not include this header.

---
 include/sysemu/numa.h | 1 -
 1 file changed, 1 deletion(-)
#5 lore raw

PATCH 3/3 system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header

In reply to Philippe Mathieu-Daudé

Since commit c4b3f46c151 ("include/exec: Move vaddr defines to separate file") we only need to include "exec/vaddr.h" to get the 'vaddr' type definition, no need for "exec/cpu-common.h".

---
 include/sysemu/accel-ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sysemu/accel-ops.h +1 -1
index a0886722305..137fb96d444 100644
@@ -10,7 +10,7 @@
 #ifndef ACCEL_OPS_H
 #define ACCEL_OPS_H
 
-#include "exec/cpu-common.h"
+#include "exec/vaddr.h"
 #include "qom/object.h"
 
 #define ACCEL_OPS_SUFFIX "-ops"
Signature · 1 line
2.45.2
Reviewed-by on v1 3/3
#6 lore raw

Re: [PATCH 3/3] system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header

Quoted 6 lines · Philippe Mathieu-Daudé

Date: Tue, 17 Dec 2024 16:13:05 +0100
From: Philippe Mathieu-Daudé <[email protected]>
Subject: [PATCH 3/3] system/accel-ops: Remove unnecessary
'exec/cpu-common.h' header
X-Mailer: git-send-email 2.45.2

Quoted 8 lines

Since commit c4b3f46c151 ("include/exec: Move vaddr defines to separate file") we only need to include "exec/vaddr.h" to get the 'vaddr' type definition, no need for "exec/cpu-common.h".

---
 include/sysemu/accel-ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#8 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 4 lines · Philippe Mathieu-Daudé

Philippe Mathieu-Daudé (3):
hw/xen: Remove unnecessary 'exec/cpu-common.h' header system/numa: Remove unnecessary 'exec/cpu-common.h' header system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header

Series queued.