[PATCH v2] drivers:staging:android:ashmem: Changing return type from int to loff_t

2018-03-15 Thread Rohit Kumar
Changing return type from int to loff_t. Actual return type of the function (vfs_llseek) is loff_t (long long). Here due to implicit converion from long long to int, result will be implementation defined. Signed-off-by: Rohit Kumar <rohit12tec...@gmail.com> --- drivers/staging/android/as

[no subject]

2018-03-15 Thread Rohit Kumar
to int, result will be implementation defined. Signed-off-by: Rohit Kumar <rohit12tec...@gmail.com> --- drivers/staging/android/ashmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c index 86580b6..a

[PATCHv3 1/1] staging/ion: Add support to get ion handle from dma buf

2016-01-11 Thread Rohit kumar
. This patch exposes api to retrieve the ion handle from dma_buf for similar use cases. With this patch, we can integrate ION within DRM-GEM for buffer management and dma_buf sharing. Signed-off-by: Rohit kumar <rohit...@samsung.com> --- v2: Updated commit message with use case expla

[PATCHv2 1/1] staging/ion: Add support to get ion handle from dma buf

2016-01-05 Thread Rohit kumar
. This patch exposes api to retrieve the ion handle from dma_buf for similar use cases. With this patch, we can integrate ION within DRM-GEM for buffer management and dma_buf sharing. Signed-off-by: Rohit kumar <rohit...@samsung.com> --- v2: Updated commit message with use case expla

[PATCH] staging/ion: Add support to get ion handle from dma buf

2016-01-05 Thread Rohit kumar
Currently we can only import dma buf fd's to get ion_handle. Adding support to import dma buf handles to support kernel specific use cases. Signed-off-by: Rohit kumar <rohit...@samsung.com> --- Currently, ION is the memory manager for graphics in android. However, in other linux pla

[PATCH 1/1] staging: ion: Fix error handling in ion_buffer_create

2015-09-29 Thread Rohit kumar
This patch fixes error handling case when buffer->pages allocation fails. Also, it removes unreachable code of checking ret variable although it is not updated. Signed-off-by: Rohit kumar <rohit...@samsung.com> --- drivers/staging/android/ion/ion.c | 14 +- 1 file c