Received: from eggs.gnu.org ([2001:4830:134:3::10]:48717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddZpy-0005Pf-2h for qemu-devel@nongnu.org; Fri, 04 Aug 2017 06:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddZpx-0002gU-7p for qemu-devel@nongnu.org; Fri, 04 Aug 2017 06:28:10 -0400 From: Mao Zhongyi Date: Fri, 4 Aug 2017 18:26:37 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/6] Convert to realize and improve error handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: John Snow , Kevin Wolf , Max Reitz , Keith Busch , Stefan Hajnoczi , "Michael S. Tsirkin" , Paolo Bonzini , Gerd Hoffmann , Markus Armbruster This series mainly implements the conversions of ide, floppy and nvme device to realize. Add some error handling messages and remove the local variable local_err, use errp to propagate the error directly. Also fix the unusual function name. v2: -use bool as the return type instead of int. [Markus Armbruster & Stefan Hajnoczi] Cc: John Snow Cc: Kevin Wolf Cc: Max Reitz Cc: Keith Busch Cc: Stefan Hajnoczi Cc: "Michael S. Tsirkin" Cc: Paolo Bonzini Cc: Gerd Hoffmann Cc: Markus Armbruster Mao Zhongyi (6): hw/ide: Convert DeviceClass init to realize hw/block/fdc: Convert to realize hw/block/nvme: Convert to realize hw/block: Fix the return type hw/block: Use errp directly rather than local_err dev-storage: Fix the unusual function name hw/block/block.c | 15 ++++--- hw/block/dataplane/virtio-blk.c | 12 +++--- hw/block/dataplane/virtio-blk.h | 2 +- hw/block/fdc.c | 48 +++++++++------------ hw/block/nvme.c | 24 +++++------ hw/block/virtio-blk.c | 17 +++----- hw/ide/core.c | 7 +-- hw/ide/qdev.c | 94 +++++++++++++++++++---------------------- hw/scsi/scsi-disk.c | 13 ++---- hw/usb/dev-storage.c | 29 ++++++------- include/hw/block/block.h | 4 +- include/hw/ide/internal.h | 5 ++- 12 files changed, 125 insertions(+), 145 deletions(-) -- 2.9.4