Loading drivers/char/adsprpc_compat.c +8 −8 Original line number Diff line number Diff line /* * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -77,13 +77,13 @@ struct compat_fastrpc_ioctl_invoke_crc { struct compat_fastrpc_ioctl_mmap { compat_int_t fd; /* ion fd */ compat_uint_t flags; /* flags for dsp to map with */ compat_u64 vaddrin; /* optional virtual address */ compat_uptr_t vaddrin; /* optional virtual address */ compat_size_t size; /* size */ compat_u64 vaddrout; /* dsps virtual address */ compat_uptr_t vaddrout; /* dsps virtual address */ }; struct compat_fastrpc_ioctl_munmap { compat_u64 vaddrout; /* address to unmap */ compat_uptr_t vaddrout; /* address to unmap */ compat_size_t size; /* size */ }; Loading Loading @@ -191,7 +191,7 @@ static int compat_get_fastrpc_ioctl_mmap( compat_uint_t u; compat_int_t i; compat_size_t s; compat_u64 p; compat_uptr_t p; int err; err = get_user(i, &map32->fd); Loading @@ -199,7 +199,7 @@ static int compat_get_fastrpc_ioctl_mmap( err |= get_user(u, &map32->flags); err |= put_user(u, &map->flags); err |= get_user(p, &map32->vaddrin); err |= put_user(p, &map->vaddrin); err |= put_user(p, (uintptr_t *)&map->vaddrin); err |= get_user(s, &map32->size); err |= put_user(s, &map->size); Loading @@ -210,7 +210,7 @@ static int compat_put_fastrpc_ioctl_mmap( struct compat_fastrpc_ioctl_mmap __user *map32, struct fastrpc_ioctl_mmap __user *map) { compat_u64 p; compat_uptr_t p; int err; err = get_user(p, &map->vaddrout); Loading @@ -223,7 +223,7 @@ static int compat_get_fastrpc_ioctl_munmap( struct compat_fastrpc_ioctl_munmap __user *unmap32, struct fastrpc_ioctl_munmap __user *unmap) { compat_u64 p; compat_uptr_t p; compat_size_t s; int err; Loading drivers/char/adsprpc_shared.h +3 −3 Original line number Diff line number Diff line Loading @@ -199,16 +199,16 @@ struct fastrpc_ioctl_init_attrs { }; struct fastrpc_ioctl_munmap { uint64_t vaddrout; /* address to unmap */ uintptr_t vaddrout; /* address to unmap */ size_t size; /* size */ }; struct fastrpc_ioctl_mmap { int fd; /* ion fd */ uint32_t flags; /* flags for dsp to map with */ uint64_t vaddrin; /* optional virtual address */ uintptr_t vaddrin; /* optional virtual address */ size_t size; /* size */ uint64_t vaddrout; /* dsps virtual address */ uintptr_t vaddrout; /* dsps virtual address */ }; struct fastrpc_ioctl_munmap_fd { Loading Loading
drivers/char/adsprpc_compat.c +8 −8 Original line number Diff line number Diff line /* * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -77,13 +77,13 @@ struct compat_fastrpc_ioctl_invoke_crc { struct compat_fastrpc_ioctl_mmap { compat_int_t fd; /* ion fd */ compat_uint_t flags; /* flags for dsp to map with */ compat_u64 vaddrin; /* optional virtual address */ compat_uptr_t vaddrin; /* optional virtual address */ compat_size_t size; /* size */ compat_u64 vaddrout; /* dsps virtual address */ compat_uptr_t vaddrout; /* dsps virtual address */ }; struct compat_fastrpc_ioctl_munmap { compat_u64 vaddrout; /* address to unmap */ compat_uptr_t vaddrout; /* address to unmap */ compat_size_t size; /* size */ }; Loading Loading @@ -191,7 +191,7 @@ static int compat_get_fastrpc_ioctl_mmap( compat_uint_t u; compat_int_t i; compat_size_t s; compat_u64 p; compat_uptr_t p; int err; err = get_user(i, &map32->fd); Loading @@ -199,7 +199,7 @@ static int compat_get_fastrpc_ioctl_mmap( err |= get_user(u, &map32->flags); err |= put_user(u, &map->flags); err |= get_user(p, &map32->vaddrin); err |= put_user(p, &map->vaddrin); err |= put_user(p, (uintptr_t *)&map->vaddrin); err |= get_user(s, &map32->size); err |= put_user(s, &map->size); Loading @@ -210,7 +210,7 @@ static int compat_put_fastrpc_ioctl_mmap( struct compat_fastrpc_ioctl_mmap __user *map32, struct fastrpc_ioctl_mmap __user *map) { compat_u64 p; compat_uptr_t p; int err; err = get_user(p, &map->vaddrout); Loading @@ -223,7 +223,7 @@ static int compat_get_fastrpc_ioctl_munmap( struct compat_fastrpc_ioctl_munmap __user *unmap32, struct fastrpc_ioctl_munmap __user *unmap) { compat_u64 p; compat_uptr_t p; compat_size_t s; int err; Loading
drivers/char/adsprpc_shared.h +3 −3 Original line number Diff line number Diff line Loading @@ -199,16 +199,16 @@ struct fastrpc_ioctl_init_attrs { }; struct fastrpc_ioctl_munmap { uint64_t vaddrout; /* address to unmap */ uintptr_t vaddrout; /* address to unmap */ size_t size; /* size */ }; struct fastrpc_ioctl_mmap { int fd; /* ion fd */ uint32_t flags; /* flags for dsp to map with */ uint64_t vaddrin; /* optional virtual address */ uintptr_t vaddrin; /* optional virtual address */ size_t size; /* size */ uint64_t vaddrout; /* dsps virtual address */ uintptr_t vaddrout; /* dsps virtual address */ }; struct fastrpc_ioctl_munmap_fd { Loading