include: Cleanups around 'exec/cpu-common.h' header
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
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
@@ -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
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.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/xen/xen.h | 2 -- 1 file changed, 2 deletions(-)
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
@@ -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
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.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/sysemu/numa.h | 1 - 1 file changed, 1 deletion(-)
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
@@ -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
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".Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/sysemu/accel-ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
r~
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.