Skip to content

Cleanups around unchecked qdev_init()

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8qdev: Improve qdev_init_nofail()'s error reportinghw/core/qdev.c+8 -30 replies
2/8ide/isa: Replace unchecked qdev_init() by qdev_init_nofail()hw/ide/isa.c+1 -30 replies
3/8leon3: Replace unchecked qdev_init() by qdev_init_nofail()include/hw/sparc/grlib.h+3 -91 reply
4/8etsec: Replace qdev_init() by qdev_init_nofail()hw/net/fsl_etsec/etsec.c+1 -40 replies
5/8serial: Factor out common serial_hds_isa_init()hw/alpha/dp264.c hw/char/serial-isa.c hw/i386/pc.c +5 more+22 -300 replies
6/8serial: serial_hds_isa_init() shouldn't failhw/char/serial-isa.c+3 -90 replies
7/8parallel: Factor out common parallel_hds_isa_init()hw/char/parallel.c hw/i386/pc.c hw/mips/mips_fulong2e.c +3 more+37 -340 replies
8/8parallel: parallel_hds_isa_init() shouldn't failhw/char/parallel.c+3 -90 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchFabien Chouteau
1/8
2/8
3/8R-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/8] Cleanups around unchecked qdev_init()

Board setup should normally use qdev_init_nofail(), not qdev_init(), because inability to create an onboard device is normally fatal. Board setup should certainly not ignore qdev_init() failure. Even when we know that realization can't actually fail now, qdev_init_nofail() is clearer and more robust. Correct a few obvious instances.

Markus Armbruster (8):
qdev: Improve qdev_init_nofail()'s error reporting ide/isa: Replace unchecked qdev_init() by qdev_init_nofail()
leon3: Replace unchecked qdev_init() by qdev_init_nofail()
etsec: Replace qdev_init() by qdev_init_nofail()
serial: Factor out common serial_hds_isa_init()
serial: serial_hds_isa_init() shouldn't fail
parallel: Factor out common parallel_hds_isa_init()
parallel: parallel_hds_isa_init() shouldn't fail

 hw/alpha/dp264.c         |  6 +-----
 hw/char/parallel.c       | 25 +++++++++++++++++++++++++
 hw/char/serial-isa.c     | 23 +++++++++++++++--------
 hw/core/qdev.c           | 11 ++++++++---
 hw/i386/pc.c             | 13 ++-----------
 hw/ide/isa.c             |  4 +---
 hw/mips/mips_fulong2e.c  | 12 ++----------
 hw/mips/mips_malta.c     |  7 +++----
 hw/mips/mips_r4k.c       |  6 +-----
 hw/net/fsl_etsec/etsec.c |  5 +----
 hw/sparc64/sun4u.c       | 12 ++----------
 include/hw/char/serial.h |  2 +-
 include/hw/i386/pc.h     | 17 +----------------
 include/hw/sparc/grlib.h | 12 +++---------
 14 files changed, 66 insertions(+), 89 deletions(-)
Signature · 1 line
1.9.3