diff options
| author | Alex Williamson <[email protected]> | 2025-02-18 22:22:04 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2025-02-27 18:55:54 +0000 |
| commit | 0635559233434a337aa1c20d53abae18b3663796 (patch) | |
| tree | 7feb6a9c5f24d642ba5a8d0b2cd0ef720c8bf6bc /lib/crypto/mpi/mpi-add.c | |
| parent | vfio/type1: Use vfio_batch for vaddr_get_pfns() (diff) | |
| download | kernel-0635559233434a337aa1c20d53abae18b3663796.tar.gz kernel-0635559233434a337aa1c20d53abae18b3663796.zip | |
vfio/type1: Use consistent types for page counts
Page count should more consistently be an unsigned long when passed as
an argument while functions returning a number of pages should use a
signed long to allow for -errno.
vaddr_get_pfns() can therefore be upgraded to return long, though in
practice it's currently limited by the batch capacity. In fact, the
batch indexes are noted to never hold negative values, so while it
doesn't make sense to bloat the structure with unsigned longs in this
case, it does make sense to specify these as unsigned.
No change in behavior expected.
Reviewed-by: Peter Xu <[email protected]>
Reviewed-by: Mitchell Augustin <[email protected]>
Tested-by: Mitchell Augustin <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
