Commit 1ad8e57d authored by Barry Song's avatar Barry Song Committed by Carlos Llamas
Browse files

BACKPORT: FROMGIT: dma-buf: align fd_flags and heap_flags with dma_heap_allocation_data



dma_heap_allocation_data defines the UAPI as follows:

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

However, dma_heap_buffer_alloc() casts both fd_flags and heap_flags
into unsigned int. We're inconsistent with types in the non UAPI
arguments. This patch fixes it.

Signed-off-by: default avatarBarry Song <v-songbaohua@oppo.com>
Acked-by: default avatarJohn Stultz <jstultz@google.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240605012605.5341-1-21cnbao@gmail.com

Bug: 344501512
(cherry picked from commit 310ec038
 https://gitlab.freedesktop.org/drm/misc/kernel.git

 drm-misc-next)
Change-Id: I3dfe337611d7f54f6a276bf417578ddaca20b775
Signed-off-by: default avatarHailong.Liu <hailong.liu@oppo.com>
[cmllamas: fixed trivial conflict with 349e8360 in dma-heap.c]
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent b1e9dead
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment