[PATCH for-6.2 v3 0/2] qom: DECLARE_INTERFACE_CHECKER macro

Eduardo Habkost posted 2 patches 2 years, 9 months ago
Failed in applying to current master (apply log)
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(-)
[PATCH for-6.2 v3 0/2] qom: DECLARE_INTERFACE_CHECKER macro
Posted by Eduardo Habkost 2 years, 9 months ago
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