Skip to content

hw: Minor simplifications using proper QOM getter macros

Philippe Mathieu-Daudé qemu-devel qemu-trivial 1 version Applied

Status from this message: Applied to my trivial-patches branch (Maybe it's time to resurrect it).

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macrohw/core/cpu-common.c+1 -21 reply
2/4hw/i386/microvm: Simplify using object_dynamic_cast()hw/i386/microvm.c+1 -22 replies
3/4hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macrohw/pci/pci.c+1 -31 reply
4/4hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macrohw/usb/hcd-ehci-pci.c+1 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonSergio LopezMichael S. Tsirkin
SeriesR-b
1/4R-b
2/4R-b R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros

Enforce QOM style. Besides, using the proper QOM macros slightly simplifies the code.

Philippe Mathieu-Daudé (4):
hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro hw/i386/microvm: Simplify using object_dynamic_cast() hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macro hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro

 hw/core/cpu-common.c  | 3 +--
 hw/i386/microvm.c     | 3 +--
 hw/pci/pci.c          | 4 +---
 hw/usb/hcd-ehci-pci.c | 2 +-
 4 files changed, 4 insertions(+), 8 deletions(-)
Signature · 1 line
2.38.1