Skip to content

Reduce usage of QERR_ macros further

Markus Armbruster qemu-devel 1 version Applied

Status from this message: Queued for 9.1 with PATCH 08's new error message fixed. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10error: Drop superfluous #include "qapi/qmp/qerror.h"backends/iommufd.c chardev/char-fe.c system/rtc.c+0 -31 reply
2/10qapi: Inline and remove QERR_BUS_NO_HOTPLUG definitionhw/ppc/spapr_pci.c include/qapi/qmp/qerror.h system/qdev-monitor.c+7 -91 reply
3/10qapi: Inline and remove QERR_DEVICE_HAS_NO_MEDIUM definitionblock/snapshot.c blockdev.c include/qapi/qmp/qerror.h+5 -71 reply
4/10qapi: Inline and remove QERR_DEVICE_NO_HOTPLUG definitionhw/core/qdev.c include/qapi/qmp/qerror.h system/qdev-monitor.c+3 -61 reply
5/10qapi: Inline and remove QERR_INVALID_PARAMETER definitioninclude/qapi/qmp/qerror.h qapi/opts-visitor.c util/qemu-option.c+6 -91 reply
6/10qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant value)qapi/qobject-input-visitor.c qapi/string-input-visitor.c qom/object.c+28 -241 reply
7/10qapi: Inline and remove QERR_INVALID_PARAMETER_TYPE definitioninclude/qapi/qmp/qerror.h qom/object.c scripts/qapi/visit.py+4 -81 reply
8/10qapi: Correct error message for 'vcpu_dirty_limit' parametermigration/options.c+2 -34 replies
9/10qapi: Inline and remove QERR_MIGRATION_ACTIVE definitioninclude/qapi/qmp/qerror.h migration/migration.c migration/options.c +1 more+4 -71 reply
10/10qapi: Inline and remove QERR_PROPERTY_VALUE_BAD definitionhw/core/qdev-properties.c include/qapi/qmp/qerror.h+1 -51 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchJuan QuintelaCédric Le GoaterZhao Liu
1/10R-b
2/10R-b R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b R-b
9/10R-b R-b
10/10R-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 00/10] Reduce usage of QERR_ macros further

Philippe posted "[PATCH v2 00/22] qapi: Kill 'qapi/qmp/qerror.h' for good" a couple of months ago. I cherry-picked just its simplest parts for now.

Markus Armbruster (1):
error: Drop superfluous #include "qapi/qmp/qerror.h"

Philippe Mathieu-Daudé (9):
qapi: Inline and remove QERR_BUS_NO_HOTPLUG definition
qapi: Inline and remove QERR_DEVICE_HAS_NO_MEDIUM definition
qapi: Inline and remove QERR_DEVICE_NO_HOTPLUG definition
qapi: Inline and remove QERR_INVALID_PARAMETER definition
qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant value)
qapi: Inline and remove QERR_INVALID_PARAMETER_TYPE definition
qapi: Correct error message for 'vcpu_dirty_limit' parameter
qapi: Inline and remove QERR_MIGRATION_ACTIVE definition
qapi: Inline and remove QERR_PROPERTY_VALUE_BAD definition

 include/qapi/qmp/qerror.h    | 21 ---------------------
 backends/iommufd.c           |  1 -
 block/snapshot.c             |  7 ++++---
 blockdev.c                   |  2 +-
 chardev/char-fe.c            |  1 -
 hw/core/qdev-properties.c    |  3 +--
 hw/core/qdev.c               |  4 ++--
 hw/ppc/spapr_pci.c           |  5 ++---
 migration/migration.c        |  2 +-
 migration/options.c          |  9 ++++-----
 migration/savevm.c           |  2 +-
 qapi/opts-visitor.c          |  2 +-
 qapi/qobject-input-visitor.c | 32 ++++++++++++++++----------------
 qapi/string-input-visitor.c  |  8 ++++----
 qom/object.c                 | 16 ++++++++++------
 system/qdev-monitor.c        | 10 ++++++----
 system/rtc.c                 |  1 -
 util/qemu-option.c           | 10 +++++-----
 scripts/qapi/visit.py        |  5 ++---
 19 files changed, 60 insertions(+), 81 deletions(-)
Signature · 1 line
2.44.0