]> www.infradead.org Git - users/hch/configfs.git/commit
dma-buf/heaps: Correct the types of fd_flags and heap_flags
authorBarry Song <v-songbaohua@oppo.com>
Thu, 6 Jun 2024 02:02:13 +0000 (14:02 +1200)
committerSumit Semwal <sumit.semwal@linaro.org>
Wed, 19 Jun 2024 14:35:34 +0000 (20:05 +0530)
commitb9578c49456340ca4d3c7ddbaca054ffc2b51bc1
treeb3dd77097824f0144bb38247c5c40ccd83a7f189
parent72533b678405e3fe083557e10ff4f9bb39b40863
dma-buf/heaps: Correct the types of fd_flags and heap_flags

dma_heap_allocation_data defines the UAPI as follows:

 struct dma_heap_allocation_data {
        __u64 len;
        __u32 fd;
        __u32 fd_flags;
        __u64 heap_flags;
 };

But dma heaps are casting both fd_flags and heap_flags into
unsigned long. This patch makes dma heaps - cma heap and
system heap have consistent types with UAPI.

Signed-off-by: Barry Song <v-songbaohua@oppo.com>
Acked-by: John Stultz <jstultz@google.com>
Reviewed-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240606020213.49854-1-21cnbao@gmail.com
drivers/dma-buf/heaps/cma_heap.c
drivers/dma-buf/heaps/system_heap.c
include/linux/dma-heap.h