Skip to content

Clean up some hw_error() misuse

Markus Armbruster qemu-arm qemu-devel xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 5 repliesIn review
  2. v213 patches 14 repliesSuperseded
  3. v112 patches 19 repliesSuperseded

Changes in v3 from the cover letter

* PATCH 02: Cover a missed instance, fix botched code motion [Thomas]
* PATCH 11: Add some assertions [Marcel, Michael]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13hw: Don't use hw_error() for machine initialization errorshw/alpha/dp264.c hw/arm/highbank.c hw/char/exynos4210_uart.c +5 more+48 -300 replies
2/13omap: Don't use hw_error() in device init() methodshw/gpio/omap_gpio.c hw/i2c/omap_i2c.c hw/intc/omap_intc.c+34 -130 replies
3/13arm_mptimer: Don't use hw_error() in realize() methodhw/timer/arm_mptimer.c+3 -20 replies
4/13etraxfs_eth: Don't use hw_error() in init() methodhw/net/etraxfs_eth.c+3 -10 replies
5/13raven: Mark use of hw_error() in realize() FIXMEhw/pci-host/prep.c+4 -20 replies
6/13error: Don't append a newline when printing the error hintqdev-monitor.c util/error.c util/qemu-option.c+5 -30 replies
7/13hw/arm/virt: Fix property "gic-version" error handlinghw/arm/virt.c+2 -31 reply
8/13sysbus: Don't use hw_error() in machine_init_done_notifiershw/core/platform-bus.c+12 -130 replies
9/13isa: Trivially convert remaining PCI-ISA bridges to realize()hw/isa/lpc_ich9.c hw/sparc64/sun4u.c+4 -70 replies
10/13isa: Clean up error handling around isa_bus_new()hw/alpha/typhoon.c hw/i386/pc_piix.c hw/isa/i82378.c +9 more+34 -160 replies
11/13isa: Clean up inappropriate hw_error()hw/isa/isa-bus.c+3 -110 replies
12/13audio: Clean up inappropriate and unreachable use of hw_error()audio/audio.c+2 -90 replies
13/13xen-hvm: Mark inappropriate error handling FIXMExen-hvm.c+7 -04 replies

Reviews trailers per patch

11 of 13 patches have a Reviewed-by or Acked-by.

PatchMarcel ApfelbaumMichael S. TsirkinThomas HuthHervé PoussineauEdgar E. IglesiasEric BlakePeter MaydellGerd Hoffmann
1/13R-b R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13
8/13R-b
9/13R-b R-b
10/13R-b R-b R-b
11/13R-b
12/13R-b
13/13

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/13] Clean up some hw_error() misuse

I intend to take this through my tree, but I'm certainly fine with maintainers picking up their parts if that makes their job easier. Just be clear about it.

v3:
* PATCH 02: Cover a missed instance, fix botched code motion [Thomas]
* PATCH 11: Add some assertions [Marcel, Michael]
v2:
* PATCH 01: Supply missing exit() [Thomas]
* PATCH 02: Improve commit message [Peter]
* PATCH 03: Fix up error message [Peter]
* PATCH 06: New, to unbreak the next patch [Peter]

Markus Armbruster (13):
hw: Don't use hw_error() for machine initialization errors
omap: Don't use hw_error() in device init() methods
arm_mptimer: Don't use hw_error() in realize() method
etraxfs_eth: Don't use hw_error() in init() method
raven: Mark use of hw_error() in realize() FIXME
error: Don't append a newline when printing the error hint hw/arm/virt: Fix property "gic-version" error handling
sysbus: Don't use hw_error() in machine_init_done_notifiers
isa: Trivially convert remaining PCI-ISA bridges to realize()
isa: Clean up error handling around isa_bus_new()
isa: Clean up inappropriate hw_error()
audio: Clean up inappropriate and unreachable use of hw_error()
xen-hvm: Mark inappropriate error handling FIXME

 audio/audio.c             | 11 ++---------
 hw/alpha/dp264.c          | 11 ++++++-----
 hw/alpha/typhoon.c        |  3 ++-
 hw/arm/highbank.c         |  6 ++++--
 hw/arm/virt.c             |  5 ++---
 hw/char/exynos4210_uart.c |  9 ++++++---
 hw/core/platform-bus.c    | 25 ++++++++++++-------------
 hw/gpio/omap_gpio.c       | 29 +++++++++++++++++++++--------
 hw/i2c/omap_i2c.c         |  8 ++++++--
 hw/i386/pc_piix.c         |  3 ++-
 hw/intc/omap_intc.c       | 10 +++++++---
 hw/isa/i82378.c           |  5 ++++-
 hw/isa/isa-bus.c          | 18 +++++-------------
 hw/isa/lpc_ich9.c         | 11 +++++++----
 hw/isa/piix4.c            |  6 ++++--
 hw/isa/vt82c686.c         |  5 ++++-
 hw/m68k/an5206.c          |  4 +++-
 hw/mips/mips_jazz.c       |  2 +-
 hw/mips/mips_r4k.c        |  2 +-
 hw/net/etraxfs_eth.c      |  4 +++-
 hw/pci-host/piix.c        |  6 ++++--
 hw/pci-host/prep.c        |  6 ++++--
 hw/ppc/mac_newworld.c     | 11 ++++++-----
 hw/ppc/mac_oldworld.c     | 16 +++++++++-------
 hw/ppc/prep.c             | 11 +++++++----
 hw/sparc64/sun4u.c        | 12 ++++++------
 hw/timer/arm_mptimer.c    |  5 +++--
 hw/unicore32/puv3.c       | 10 +++++++---
 include/hw/isa/isa.h      |  2 +-
 qdev-monitor.c            |  2 ++
 util/error.c              |  2 +-
 util/qemu-option.c        |  4 ++--
 xen-hvm.c                 |  7 +++++++
 33 files changed, 161 insertions(+), 110 deletions(-)
Signature · 1 line
2.4.3