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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -19,7 +19,7 @@ · 18 unmodified lines | |||
| 19 | #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE) | 19 | #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE) |
| 20 | 20 | ||
| 21 | /* Currently no heap flags */ | 21 | /* Currently no heap flags */ |
| 22 | #define DMA_HEAP_VALID_HEAP_FLAGS (0) | 22 | #define DMA_HEAP_VALID_HEAP_FLAGS (0ULL) |
| 23 | 23 | ||
| 24 | /** | 24 | /** |
| 25 | * struct dma_heap_allocation_data - metadata passed from userspace for | 25 | * struct dma_heap_allocation_data - metadata passed from userspace for |