[x/azure][PATCH 08/17] uio: introduce UIO_MEM_IOVA
Seth Forshee
seth.forshee at canonical.com
Fri Jun 7 20:05:37 UTC 2019
On Fri, Jun 07, 2019 at 04:38:42PM -0300, Marcelo Henrique Cerri wrote:
> @@ -703,13 +704,14 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma)
> }
>
> switch (idev->info->mem[mi].memtype) {
> - case UIO_MEM_PHYS:
> - return uio_mmap_physical(vma);
> - case UIO_MEM_LOGICAL:
> - case UIO_MEM_VIRTUAL:
> - return uio_mmap_logical(vma);
> - default:
> - return -EINVAL;
> + case UIO_MEM_IOVA:
> + case UIO_MEM_PHYS:
> + return uio_mmap_physical(vma);
> + case UIO_MEM_LOGICAL:
> + case UIO_MEM_VIRTUAL:
> + return uio_mmap_logical(vma);
> + default:
> + return -EINVAL;
Something funky is going on with the indentation here.
More information about the kernel-team
mailing list