Commit 30d2da22 authored by Barry Song's avatar Barry Song Committed by Carlos Llamas
Browse files

BACKPORT: FROMLIST: 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: default avatarBarry Song <v-songbaohua@oppo.com>
Acked-by: default avatarJohn Stultz <jstultz@google.com>
Reviewed-by: default avatarCarlos Llamas <cmllamas@google.com>

Bug: 344501512
Link: https://lore.kernel.org/lkml/20240606020213.49854-1-21cnbao@gmail.com/


Change-Id: Id361dadd2973b36e29528ee96a92ab4c5b2d4655
[cmllamas: fixed trivial conflicts]
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent 1ad8e57d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment