Thread (4 messages) 4 messages, 4 authors, 2021-08-03

Re: [PATCH v3] vfio/pci: Make vfio_pci_regops->rw() return ssize_t

From: Alex Williamson <hidden>
Date: 2021-08-03 18:45:22

On Wed, 21 Jul 2021 10:05:48 -0300
Jason Gunthorpe [off-list ref] wrote:
From: Yishai Hadas <yishaih@nvidia.com>

The only implementation of this in IGD returns a -ERRNO which is
implicitly cast through a size_t and then casted again and returned as a
ssize_t in vfio_pci_rw().

Fix the vfio_pci_regops->rw() return type to be ssize_t so all is
consistent.

Fixes: 28541d41c9e0 ("vfio/pci: Add infrastructure for additional device specific regions")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 drivers/vfio/pci/vfio_pci_igd.c     | 10 +++++-----
 drivers/vfio/pci/vfio_pci_private.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
Applied to vfio next branch for v5.15 with Max and Connie's R-b.
Thanks,

Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help