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(-) -- 2.44.0