qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-6.2 v3 0/2] qom: DECLARE_INTERFACE_CHECKER macro
@ 2021-08-09 20:07 Eduardo Habkost
  2021-08-09 20:07 ` [PATCH for-6.2 v3 1/2] " Eduardo Habkost
  2021-08-09 20:07 ` [PATCH for-6.2 v3 2/2] [autoamted] Use " Eduardo Habkost
  0 siblings, 2 replies; 3+ messages in thread
From: Eduardo Habkost @ 2021-08-09 20:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Philippe Mathieu-Daudé, Daniel P. Berrange,
	Marc-André Lureau

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.

Maybe one day INTERFACE_CHECK/DECLARE_INTERFACE_CHECKER will be
completely replaced with OBJECT_CHECK/DECLARE_INSTANCE_CHECKER,
but by now it might be useful to keep the distinction between
regular objects and interface types.  See discussion at
https://lore.kernel.org/qemu-devel/20200916221347.GL7594@habkost.net

Based-on: <20210806211127.646908-1-ehabkost@redhat.com>

Changes v2 -> v3:
* Rebased on top of
  Subject: [PATCH for-6.2 00/12] qom: Get rid of all manual usage of OBJECT_CHECK & friends
  Date: Fri,  6 Aug 2021 17:11:15 -0400
  Message-Id: <20210806211127.646908-1-ehabkost@redhat.com>
  https://lore.kernel.org/qemu-devel/20210806211127.646908-1-ehabkost@redhat.com

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

Links to previous versions:
v1: https://lore.kernel.org/qemu-devel/20200916223258.599367-1-ehabkost@redhat.com
v2: https://lore.kernel.org/qemu-devel/20200917024947.707586-1-ehabkost@redhat.com

Eduardo Habkost (2):
  qom: DECLARE_INTERFACE_CHECKER macro
  [autoamted] Use DECLARE_INTERFACE_CHECKER macro

 include/hw/acpi/acpi_dev_interface.h |  5 ++---
 include/hw/arm/linux-boot-if.h       |  4 ++--
 include/hw/fw-path-provider.h        |  4 ++--
 include/hw/hotplug.h                 |  4 ++--
 include/hw/intc/intc.h               |  5 ++---
 include/hw/ipmi/ipmi.h               |  4 ++--
 include/hw/isa/isa.h                 |  4 ++--
 include/hw/mem/memory-device.h       |  4 ++--
 include/hw/nmi.h                     |  4 ++--
 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               |  5 ++---
 include/hw/rtc/m48t59.h              |  4 ++--
 include/hw/stream.h                  |  4 ++--
 include/hw/vmstate-if.h              |  4 ++--
 include/qom/object.h                 | 14 ++++++++++++++
 include/qom/object_interfaces.h      |  5 ++---
 include/sysemu/tpm.h                 |  4 ++--
 target/arm/idau.h                    |  4 ++--
 tests/unit/check-qom-interface.c     |  4 ++--
 22 files changed, 60 insertions(+), 50 deletions(-)

-- 
2.31.1




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

end of thread, other threads:[~2021-08-09 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-09 20:07 [PATCH for-6.2 v3 0/2] qom: DECLARE_INTERFACE_CHECKER macro Eduardo Habkost
2021-08-09 20:07 ` [PATCH for-6.2 v3 1/2] " Eduardo Habkost
2021-08-09 20:07 ` [PATCH for-6.2 v3 2/2] [autoamted] Use " Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).