* [Qemu-devel] [RFC PATCH 1/4] typedefs: Remove PcGuestInfo from qemu/typedefs.h
2018-05-08 15:10 [Qemu-devel] [RFC PATCH 0/4] qemu/typedefs.h cleanup Philippe Mathieu-Daudé
@ 2018-05-08 15:10 ` Philippe Mathieu-Daudé
2018-05-08 15:24 ` Thomas Huth
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 2/4] hw/pcmcia: Remove PCMCIACardState " Philippe Mathieu-Daudé
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-08 15:10 UTC (permalink / raw)
To: Thomas Huth, Michael S . Tsirkin, Eduardo Habkost
Cc: Philippe Mathieu-Daudé, qemu-devel
It is long gone since e4e8ba04c2007 ...
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
include/qemu/typedefs.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index a46b0b347b..325c72de33 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -62,7 +62,6 @@ typedef struct NetClientState NetClientState;
typedef struct NetFilterState NetFilterState;
typedef struct NICInfo NICInfo;
typedef struct NumaNodeMem NumaNodeMem;
-typedef struct PcGuestInfo PcGuestInfo;
typedef struct PCIBridge PCIBridge;
typedef struct PCIBus PCIBus;
typedef struct PCIDevice PCIDevice;
--
2.17.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [RFC PATCH 1/4] typedefs: Remove PcGuestInfo from qemu/typedefs.h
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 1/4] typedefs: Remove PcGuestInfo from qemu/typedefs.h Philippe Mathieu-Daudé
@ 2018-05-08 15:24 ` Thomas Huth
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2018-05-08 15:24 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, Michael S . Tsirkin, Eduardo Habkost
Cc: qemu-devel, QEMU Trivial
On 08.05.2018 17:10, Philippe Mathieu-Daudé wrote:
> It is long gone since e4e8ba04c2007 ...
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> include/qemu/typedefs.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
> index a46b0b347b..325c72de33 100644
> --- a/include/qemu/typedefs.h
> +++ b/include/qemu/typedefs.h
> @@ -62,7 +62,6 @@ typedef struct NetClientState NetClientState;
> typedef struct NetFilterState NetFilterState;
> typedef struct NICInfo NICInfo;
> typedef struct NumaNodeMem NumaNodeMem;
> -typedef struct PcGuestInfo PcGuestInfo;
> typedef struct PCIBridge PCIBridge;
> typedef struct PCIBus PCIBus;
> typedef struct PCIDevice PCIDevice;
>
No need to mark this patch as RFC - this is certainly a good idea.
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [RFC PATCH 2/4] hw/pcmcia: Remove PCMCIACardState from qemu/typedefs.h
2018-05-08 15:10 [Qemu-devel] [RFC PATCH 0/4] qemu/typedefs.h cleanup Philippe Mathieu-Daudé
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 1/4] typedefs: Remove PcGuestInfo from qemu/typedefs.h Philippe Mathieu-Daudé
@ 2018-05-08 15:10 ` Philippe Mathieu-Daudé
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 3/4] hw/ssi: Remove SSIBus " Philippe Mathieu-Daudé
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 4/4] hw/ide/ahci: Remove AllwinnerAHCIState " Philippe Mathieu-Daudé
3 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-08 15:10 UTC (permalink / raw)
To: Thomas Huth, Michael S . Tsirkin, Paolo Bonzini
Cc: Philippe Mathieu-Daudé, qemu-devel, qemu-arm,
Andrzej Zaborowski
There is only one file requiring this typedef (hw/arm/pxa.h),
let it include "hw/pcmcia.h" directly to simplify qemu/typedefs.h.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
include/hw/arm/pxa.h | 1 +
include/hw/pcmcia.h | 4 ++--
include/qemu/typedefs.h | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h
index 0df1199caa..f6dfb5c0cf 100644
--- a/include/hw/arm/pxa.h
+++ b/include/hw/arm/pxa.h
@@ -12,6 +12,7 @@
#include "exec/memory.h"
#include "target/arm/cpu-qom.h"
+#include "hw/pcmcia.h"
/* Interrupt numbers */
# define PXA2XX_PIC_SSP3 0
diff --git a/include/hw/pcmcia.h b/include/hw/pcmcia.h
index 79cac9c761..1b4080764f 100644
--- a/include/hw/pcmcia.h
+++ b/include/hw/pcmcia.h
@@ -18,13 +18,13 @@ typedef struct PCMCIASocket {
#define PCMCIA_CARD_CLASS(cls) \
OBJECT_CLASS_CHECK(PCMCIACardClass, cls, TYPE_PCMCIA_CARD)
-struct PCMCIACardState {
+typedef struct PCMCIACardState {
/*< private >*/
DeviceState parent_obj;
/*< public >*/
PCMCIASocket *slot;
-};
+} PCMCIACardState;
typedef struct PCMCIACardClass {
/*< private >*/
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 325c72de33..c7a0159bd2 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -76,7 +76,6 @@ typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
typedef struct PCIHostState PCIHostState;
typedef struct PCMachineClass PCMachineClass;
typedef struct PCMachineState PCMachineState;
-typedef struct PCMCIACardState PCMCIACardState;
typedef struct PixelFormat PixelFormat;
typedef struct PostcopyDiscardState PostcopyDiscardState;
typedef struct Property Property;
--
2.17.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Qemu-devel] [RFC PATCH 3/4] hw/ssi: Remove SSIBus from qemu/typedefs.h
2018-05-08 15:10 [Qemu-devel] [RFC PATCH 0/4] qemu/typedefs.h cleanup Philippe Mathieu-Daudé
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 1/4] typedefs: Remove PcGuestInfo from qemu/typedefs.h Philippe Mathieu-Daudé
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 2/4] hw/pcmcia: Remove PCMCIACardState " Philippe Mathieu-Daudé
@ 2018-05-08 15:10 ` Philippe Mathieu-Daudé
2018-05-08 22:39 ` Alistair Francis
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 4/4] hw/ide/ahci: Remove AllwinnerAHCIState " Philippe Mathieu-Daudé
3 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-08 15:10 UTC (permalink / raw)
To: Thomas Huth, Michael S . Tsirkin, Peter Crosthwaite,
Alistair Francis
Cc: Philippe Mathieu-Daudé, qemu-devel, qemu-arm, Peter Maydell,
Andrzej Zaborowski
There are only two files requiring this typedef (strongarm.h
and hw/arm/pxa.h), let them include "hw/pcmcia.h" directly to
simplify qemu/typedefs.h.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/arm/strongarm.h | 1 +
include/hw/arm/pxa.h | 1 +
include/hw/ssi/ssi.h | 1 +
include/qemu/typedefs.h | 1 -
4 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/arm/strongarm.h b/hw/arm/strongarm.h
index e98840b461..ae51a1ae34 100644
--- a/hw/arm/strongarm.h
+++ b/hw/arm/strongarm.h
@@ -3,6 +3,7 @@
#include "exec/memory.h"
#include "target/arm/cpu-qom.h"
+#include "hw/ssi/ssi.h"
#define SA_CS0 0x00000000
#define SA_CS1 0x08000000
diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h
index f6dfb5c0cf..f184349f02 100644
--- a/include/hw/arm/pxa.h
+++ b/include/hw/arm/pxa.h
@@ -13,6 +13,7 @@
#include "exec/memory.h"
#include "target/arm/cpu-qom.h"
#include "hw/pcmcia.h"
+#include "hw/ssi/ssi.h"
/* Interrupt numbers */
# define PXA2XX_PIC_SSP3 0
diff --git a/include/hw/ssi/ssi.h b/include/hw/ssi/ssi.h
index 6a0c3c3cdb..bdbf3c51f5 100644
--- a/include/hw/ssi/ssi.h
+++ b/include/hw/ssi/ssi.h
@@ -13,6 +13,7 @@
#include "hw/qdev.h"
+typedef struct SSIBus SSIBus;
typedef struct SSISlave SSISlave;
typedef struct SSISlaveClass SSISlaveClass;
typedef enum SSICSMode SSICSMode;
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index c7a0159bd2..b4dc63a466 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -106,7 +106,6 @@ typedef struct Range Range;
typedef struct SerialState SerialState;
typedef struct SHPCDevice SHPCDevice;
typedef struct SMBusDevice SMBusDevice;
-typedef struct SSIBus SSIBus;
typedef struct uWireSlave uWireSlave;
typedef struct VirtIODevice VirtIODevice;
typedef struct Visitor Visitor;
--
2.17.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [RFC PATCH 3/4] hw/ssi: Remove SSIBus from qemu/typedefs.h
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 3/4] hw/ssi: Remove SSIBus " Philippe Mathieu-Daudé
@ 2018-05-08 22:39 ` Alistair Francis
0 siblings, 0 replies; 8+ messages in thread
From: Alistair Francis @ 2018-05-08 22:39 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Thomas Huth, Michael S . Tsirkin, Peter Crosthwaite,
Alistair Francis, Peter Maydell, qemu-arm,
qemu-devel@nongnu.org Developers
On Tue, May 8, 2018 at 8:10 AM, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> There are only two files requiring this typedef (strongarm.h
> and hw/arm/pxa.h), let them include "hw/pcmcia.h" directly to
> simplify qemu/typedefs.h.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
I think this is heading in the right direction.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> hw/arm/strongarm.h | 1 +
> include/hw/arm/pxa.h | 1 +
> include/hw/ssi/ssi.h | 1 +
> include/qemu/typedefs.h | 1 -
> 4 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/hw/arm/strongarm.h b/hw/arm/strongarm.h
> index e98840b461..ae51a1ae34 100644
> --- a/hw/arm/strongarm.h
> +++ b/hw/arm/strongarm.h
> @@ -3,6 +3,7 @@
>
> #include "exec/memory.h"
> #include "target/arm/cpu-qom.h"
> +#include "hw/ssi/ssi.h"
>
> #define SA_CS0 0x00000000
> #define SA_CS1 0x08000000
> diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h
> index f6dfb5c0cf..f184349f02 100644
> --- a/include/hw/arm/pxa.h
> +++ b/include/hw/arm/pxa.h
> @@ -13,6 +13,7 @@
> #include "exec/memory.h"
> #include "target/arm/cpu-qom.h"
> #include "hw/pcmcia.h"
> +#include "hw/ssi/ssi.h"
>
> /* Interrupt numbers */
> # define PXA2XX_PIC_SSP3 0
> diff --git a/include/hw/ssi/ssi.h b/include/hw/ssi/ssi.h
> index 6a0c3c3cdb..bdbf3c51f5 100644
> --- a/include/hw/ssi/ssi.h
> +++ b/include/hw/ssi/ssi.h
> @@ -13,6 +13,7 @@
>
> #include "hw/qdev.h"
>
> +typedef struct SSIBus SSIBus;
> typedef struct SSISlave SSISlave;
> typedef struct SSISlaveClass SSISlaveClass;
> typedef enum SSICSMode SSICSMode;
> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
> index c7a0159bd2..b4dc63a466 100644
> --- a/include/qemu/typedefs.h
> +++ b/include/qemu/typedefs.h
> @@ -106,7 +106,6 @@ typedef struct Range Range;
> typedef struct SerialState SerialState;
> typedef struct SHPCDevice SHPCDevice;
> typedef struct SMBusDevice SMBusDevice;
> -typedef struct SSIBus SSIBus;
> typedef struct uWireSlave uWireSlave;
> typedef struct VirtIODevice VirtIODevice;
> typedef struct Visitor Visitor;
> --
> 2.17.0
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [RFC PATCH 4/4] hw/ide/ahci: Remove AllwinnerAHCIState from qemu/typedefs.h
2018-05-08 15:10 [Qemu-devel] [RFC PATCH 0/4] qemu/typedefs.h cleanup Philippe Mathieu-Daudé
` (2 preceding siblings ...)
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 3/4] hw/ssi: Remove SSIBus " Philippe Mathieu-Daudé
@ 2018-05-08 15:10 ` Philippe Mathieu-Daudé
2018-05-08 22:16 ` John Snow
3 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-05-08 15:10 UTC (permalink / raw)
To: Thomas Huth, Michael S . Tsirkin, John Snow
Cc: Philippe Mathieu-Daudé, qemu-devel, qemu-block
Files requiring AllwinnerAHCIState already include "hw/ide/ahci.h".
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
include/hw/ide/ahci.h | 4 ++--
include/qemu/typedefs.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/hw/ide/ahci.h b/include/hw/ide/ahci.h
index b7bb2b02d6..b44e3000cf 100644
--- a/include/hw/ide/ahci.h
+++ b/include/hw/ide/ahci.h
@@ -73,13 +73,13 @@ typedef struct SysbusAHCIState {
#define ALLWINNER_AHCI_MMIO_OFF 0x80
#define ALLWINNER_AHCI_MMIO_SIZE 0x80
-struct AllwinnerAHCIState {
+typedef struct AllwinnerAHCIState {
/*< private >*/
SysbusAHCIState parent_obj;
/*< public >*/
MemoryRegion mmio;
uint32_t regs[ALLWINNER_AHCI_MMIO_SIZE/4];
-};
+} AllwinnerAHCIState;
#endif /* HW_IDE_AHCI_H */
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index b4dc63a466..6baadfbd49 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -8,7 +8,6 @@
typedef struct AdapterInfo AdapterInfo;
typedef struct AddressSpace AddressSpace;
typedef struct AioContext AioContext;
-typedef struct AllwinnerAHCIState AllwinnerAHCIState;
typedef struct AudioState AudioState;
typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
--
2.17.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [RFC PATCH 4/4] hw/ide/ahci: Remove AllwinnerAHCIState from qemu/typedefs.h
2018-05-08 15:10 ` [Qemu-devel] [RFC PATCH 4/4] hw/ide/ahci: Remove AllwinnerAHCIState " Philippe Mathieu-Daudé
@ 2018-05-08 22:16 ` John Snow
0 siblings, 0 replies; 8+ messages in thread
From: John Snow @ 2018-05-08 22:16 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, Thomas Huth, Michael S . Tsirkin
Cc: qemu-block, qemu-devel
On 05/08/2018 11:10 AM, Philippe Mathieu-Daudé wrote:
> Files requiring AllwinnerAHCIState already include "hw/ide/ahci.h".
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> include/hw/ide/ahci.h | 4 ++--
> include/qemu/typedefs.h | 1 -
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/include/hw/ide/ahci.h b/include/hw/ide/ahci.h
> index b7bb2b02d6..b44e3000cf 100644
> --- a/include/hw/ide/ahci.h
> +++ b/include/hw/ide/ahci.h
> @@ -73,13 +73,13 @@ typedef struct SysbusAHCIState {
> #define ALLWINNER_AHCI_MMIO_OFF 0x80
> #define ALLWINNER_AHCI_MMIO_SIZE 0x80
>
> -struct AllwinnerAHCIState {
> +typedef struct AllwinnerAHCIState {
> /*< private >*/
> SysbusAHCIState parent_obj;
> /*< public >*/
>
> MemoryRegion mmio;
> uint32_t regs[ALLWINNER_AHCI_MMIO_SIZE/4];
> -};
> +} AllwinnerAHCIState;
>
> #endif /* HW_IDE_AHCI_H */
> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
> index b4dc63a466..6baadfbd49 100644
> --- a/include/qemu/typedefs.h
> +++ b/include/qemu/typedefs.h
> @@ -8,7 +8,6 @@
> typedef struct AdapterInfo AdapterInfo;
> typedef struct AddressSpace AddressSpace;
> typedef struct AioContext AioContext;
> -typedef struct AllwinnerAHCIState AllwinnerAHCIState;
> typedef struct AudioState AudioState;
> typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
> typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
>
Hm, sure; I suppose we don't need QEMU-wide definitions of these sorts
of things.
Acked-by: John Snow <jsnow@redhat.com>
^ permalink raw reply [flat|nested] 8+ messages in thread