qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 02/18] block: Add a 'flags' param to blk_pread()


From: Hanna Reitz
Subject: Re: [PATCH 02/18] block: Add a 'flags' param to blk_pread()
Date: Mon, 4 Jul 2022 16:04:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 17.05.22 13:35, Alberto Faria wrote:
For consistency with other I/O functions, and in preparation to
implement it using generated_co_wrapper.

Callers were updated using this Coccinelle script:

     @@ expression blk, offset, buf, bytes; @@
     - blk_pread(blk, offset, buf, bytes)
     + blk_pread(blk, offset, buf, bytes, 0)

It had no effect on hw/block/nand.c, presumably due to the #if, so that
file was updated manually.

Overly-long lines were then fixed by hand.

Signed-off-by: Alberto Faria <afaria@redhat.com>
---
  block.c                           |  2 +-
  block/block-backend.c             |  5 +++--
  block/commit.c                    |  2 +-
  block/export/fuse.c               |  2 +-
  hw/arm/allwinner-h3.c             |  2 +-
  hw/arm/aspeed.c                   |  2 +-
  hw/block/block.c                  |  2 +-
  hw/block/fdc.c                    |  6 +++---
  hw/block/hd-geometry.c            |  2 +-
  hw/block/m25p80.c                 |  2 +-
  hw/block/nand.c                   | 12 ++++++------
  hw/block/onenand.c                | 12 ++++++------
  hw/ide/atapi.c                    |  4 ++--
  hw/misc/mac_via.c                 |  2 +-
  hw/misc/sifive_u_otp.c            |  4 ++--
  hw/nvram/eeprom_at24c.c           |  2 +-
  hw/nvram/spapr_nvram.c            |  2 +-
  hw/nvram/xlnx-bbram.c             |  2 +-
  hw/nvram/xlnx-efuse.c             |  2 +-
  hw/ppc/pnv_pnor.c                 |  2 +-
  hw/sd/sd.c                        |  2 +-
  include/sysemu/block-backend-io.h |  3 ++-
  migration/block.c                 |  4 ++--
  nbd/server.c                      |  4 ++--
  qemu-img.c                        | 12 ++++++------
  qemu-io-cmds.c                    |  2 +-
  tests/unit/test-block-iothread.c  |  4 ++--
  27 files changed, 52 insertions(+), 50 deletions(-)

Reviewed-by: Hanna Reitz <hreitz@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]