[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 17/18] [automated] Use OBJECT_DECLARE_TYPE where possible (pas
From: |
Eduardo Habkost |
Subject: |
[PATCH v4 17/18] [automated] Use OBJECT_DECLARE_TYPE where possible (pass 3) |
Date: |
Mon, 31 Aug 2020 17:07:39 -0400 |
Replace DECLARE_OBJ_CHECKERS with OBJECT_DECLARE_TYPE where the
typedefs can be safely removed.
Generated running:
$ ./scripts/codeconverter/converter.py -i \
--pattern=DeclareObjCheckers $(git grep -l '' -- '*.[ch]')
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Changes series v3 -> v4: this is a new patch added in series v4
The script was re-run after series rebase.
This is being submitted as a separate patch to make review
easier, but it can be squashed into the previous patch once it
gets reviewed.
---
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Cc: qemu-devel@nongnu.org
---
include/hw/arm/armsse.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/hw/arm/armsse.h b/include/hw/arm/armsse.h
index 452cbb5793..b844ef6bc0 100644
--- a/include/hw/arm/armsse.h
+++ b/include/hw/arm/armsse.h
@@ -108,10 +108,8 @@
#include "qom/object.h"
#define TYPE_ARM_SSE "arm-sse"
-typedef struct ARMSSE ARMSSE;
-typedef struct ARMSSEClass ARMSSEClass;
-DECLARE_OBJ_CHECKERS(ARMSSE, ARMSSEClass,
- ARM_SSE, TYPE_ARM_SSE)
+OBJECT_DECLARE_TYPE(ARMSSE, ARMSSEClass,
+ arm_sse, ARM_SSE)
/*
* These type names are for specific IoTKit subsystems; other than
--
2.26.2
- [PATCH v4 04/18] qom: DECLARE_*_CHECKERS macros, (continued)
- [PATCH v4 04/18] qom: DECLARE_*_CHECKERS macros, Eduardo Habkost, 2020/08/31
- [PATCH v4 05/18] qom: Make type checker functions accept const pointers, Eduardo Habkost, 2020/08/31
- [PATCH v4 02/18] qom: provide convenient macros for declaring and defining types, Eduardo Habkost, 2020/08/31
- [PATCH v4 06/18] codeconverter: script for automating QOM code cleanups, Eduardo Habkost, 2020/08/31
- [PATCH v4 09/18] [automated] Move QOM typedefs and add missing includes (pass 2), Eduardo Habkost, 2020/08/31
- [PATCH v4 10/18] [automated] Move QOM typedefs and add missing includes (pass 3), Eduardo Habkost, 2020/08/31
- [PATCH v4 08/18] [automated] Move QOM typedefs and add missing includes, Eduardo Habkost, 2020/08/31
- [PATCH v4 12/18] [automated] Use DECLARE_*CHECKER* macros (pass 2), Eduardo Habkost, 2020/08/31
- [PATCH v4 14/18] [semi-automated] Use DECLARE_*CHECKER* when possible (--force mode), Eduardo Habkost, 2020/08/31
- [PATCH v4 13/18] [automated] Use DECLARE_*CHECKER* macros (pass 3), Eduardo Habkost, 2020/08/31
- [PATCH v4 17/18] [automated] Use OBJECT_DECLARE_TYPE where possible (pass 3),
Eduardo Habkost <=
- [PATCH v4 11/18] [automated] Use DECLARE_*CHECKER* macros, Eduardo Habkost, 2020/08/31
- [PATCH v4 16/18] [automated] Use OBJECT_DECLARE_TYPE where possible (pass 2), Eduardo Habkost, 2020/08/31
- [PATCH v4 15/18] [automated] Use OBJECT_DECLARE_TYPE where possible, Eduardo Habkost, 2020/08/31
- [PATCH v4 18/18] [automated] Use OBJECT_DECLARE_SIMPLE_TYPE when possible, Eduardo Habkost, 2020/08/31