All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] qom: DECLARE_INTERFACE_CHECKER macro
@ 2020-09-17  2:49 Eduardo Habkost
  2020-09-17  2:49 ` [PATCH v2 1/2] " Eduardo Habkost
  2020-09-17  2:49 ` [PATCH v2 2/2] qom: Use " Eduardo Habkost
  0 siblings, 2 replies; 5+ messages in thread
From: Eduardo Habkost @ 2020-09-17  2:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrange, Marc-André Lureau, Paolo Bonzini

This is an alternative to the series:
  Subject: [PATCH 0/3] qom: Replace INTERFACE_CHECK with OBJECT_CHECK
  https://lore.kernel.org/qemu-devel/20200916193101.511600-1-ehabkost@redhat.com/

Instead of removing INTERFACE_CHECK completely, keep it but use a
DECLARE_INTERFACE_CHECKER macro to define the type checking functions for
interface types.

Changes v1 -> v2:
* Move declaration after typedefs, so the code actually compiles

Link to v1:
https://lore.kernel.org/qemu-devel/20200916223258.599367-1-ehabkost@redhat.com

Eduardo Habkost (2):
  qom: DECLARE_INTERFACE_CHECKER macro
  qom: Use DECLARE_INTERFACE_CHECKER macro

 include/hw/acpi/acpi_dev_interface.h |  7 +++----
 include/hw/arm/linux-boot-if.h       |  6 +++---
 include/hw/fw-path-provider.h        |  6 +++---
 include/hw/hotplug.h                 |  6 +++---
 include/hw/intc/intc.h               |  7 +++----
 include/hw/ipmi/ipmi.h               |  6 +++---
 include/hw/isa/isa.h                 |  4 ++--
 include/hw/mem/memory-device.h       |  6 +++---
 include/hw/nmi.h                     |  6 +++---
 include/hw/ppc/pnv_xscom.h           |  4 ++--
 include/hw/ppc/spapr_irq.h           |  4 ++--
 include/hw/ppc/xics.h                |  4 ++--
 include/hw/ppc/xive.h                | 12 ++++++------
 include/hw/rdma/rdma.h               |  7 +++----
 include/hw/rtc/m48t59.h              |  6 +++---
 include/hw/stream.h                  |  6 +++---
 include/hw/vmstate-if.h              |  6 +++---
 include/qom/object.h                 | 14 ++++++++++++++
 include/qom/object_interfaces.h      |  7 +++----
 include/sysemu/tpm.h                 |  6 +++---
 target/arm/idau.h                    |  6 +++---
 tests/check-qom-interface.c          |  6 +++---
 22 files changed, 76 insertions(+), 66 deletions(-)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-17 17:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17  2:49 [PATCH v2 0/2] qom: DECLARE_INTERFACE_CHECKER macro Eduardo Habkost
2020-09-17  2:49 ` [PATCH v2 1/2] " Eduardo Habkost
2020-09-17  2:49 ` [PATCH v2 2/2] qom: Use " Eduardo Habkost
2020-09-17  7:38   ` Cédric Le Goater
2020-09-17 17:25     ` Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.