On Tue, Sep 19, 2017 at 1:07 PM, Benjamin Gaignard
wrote:
> 2017-09-19 11:40 GMT+02:00 Dan Carpenter :
>> On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote:
>>> -static int validate_ioctl_arg(unsigned int cmd, union ion_ioctl_arg *arg)
>>> +static int validate_ioctl_arg(struct file
> > > Though I normally prefer static inline functions, I see the benefits of
> > > using the macro form here.
>
> An inline could still work
> static inline void __user *u64_to_user_ptr(u64 address)
> {
> return (void __user *)(uintptr_t)address;
> }
> if th
I'd like to ask what is the policy for back porting fixes for drivers
that already graduated from staging but the fix is needed in kernel
version where it is still in the staging.
Thanks
___
devel mailing list
de...@linuxdriverproject.org
http://driverd
Looks like phys_addr_t's are fully plumbed in the kernel.
Signed-off-by: Tomas Winkler
---
V2: remove one more comment regarding ion_phys_addr_t
drivers/staging/android/ion/ion.c | 2 +-
drivers/staging/android/ion/ion.h | 12 +++-
drivers/staging/an
Looks like phys_addr_t's are fully plumbed in the kernel.
Signed-off-by: Tomas Winkler
---
drivers/staging/android/ion/ion.c | 2 +-
drivers/staging/android/ion/ion.h | 12 +++-
drivers/staging/android/ion/ion_carveout_heap.c | 14 +++---
dr
use ARRAY_SIZE to count number of heaps in static array
Signed-off-by: Tomas Winkler
---
drivers/staging/android/ion/ion_dummy_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c
b/drivers/staging/android/ion