summaryrefslogtreecommitdiffstats
path: root/include/hw/intc/arm_gic.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-31 23:07:36 +0200
committerEduardo Habkost2020-09-09 15:27:11 +0200
commitfa34a3c58ae7161463aded42e70bd59c212ed9f4 (patch)
tree905a15c5b4f24c19158b0bf6c76361b4d0a3eafb /include/hw/intc/arm_gic.h
parentUse DECLARE_*CHECKER* macros (diff)
downloadqemu-fa34a3c58ae7161463aded42e70bd59c212ed9f4.tar.gz
qemu-fa34a3c58ae7161463aded42e70bd59c212ed9f4.tar.xz
qemu-fa34a3c58ae7161463aded42e70bd59c212ed9f4.zip
Use DECLARE_*CHECKER* when possible (--force mode)
Separate run of the TypeCheckMacro converter using the --force flag, for the cases where typedefs weren't found in the same header nor in typedefs.h. Generated initially using: $ ./scripts/codeconverter/converter.py --force -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Then each case was manually reviewed, and a comment was added indicating what's unusual about those type checking macros/functions. Despite not following the usual pattern, the changes in this patch were found to be safe. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200831210740.126168-15-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/intc/arm_gic.h')
-rw-r--r--include/hw/intc/arm_gic.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/hw/intc/arm_gic.h b/include/hw/intc/arm_gic.h
index 704ef2b751..116ccbb5a9 100644
--- a/include/hw/intc/arm_gic.h
+++ b/include/hw/intc/arm_gic.h
@@ -74,12 +74,9 @@
#define TYPE_ARM_GIC "arm_gic"
typedef struct ARMGICClass ARMGICClass;
-#define ARM_GIC(obj) \
- OBJECT_CHECK(GICState, (obj), TYPE_ARM_GIC)
-#define ARM_GIC_CLASS(klass) \
- OBJECT_CLASS_CHECK(ARMGICClass, (klass), TYPE_ARM_GIC)
-#define ARM_GIC_GET_CLASS(obj) \
- OBJECT_GET_CLASS(ARMGICClass, (obj), TYPE_ARM_GIC)
+/* This is reusing the GICState typedef from TYPE_ARM_GIC_COMMON */
+DECLARE_OBJ_CHECKERS(GICState, ARMGICClass,
+ ARM_GIC, TYPE_ARM_GIC)
struct ARMGICClass {
/*< private >*/