diff options
| author | Shahyan Soltani <shahyan.soltani@amd.com> | 2026-06-30 12:04:01 -0400 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2026-07-02 09:27:51 +0200 |
| commit | 44d19b8a7548aa25cbc6ebd5f27e958f7142c36b (patch) | |
| tree | e3a3645343fea1efcb5eb542b7c8a4a7b8aea8f9 /include | |
| parent | cff96362794a5c1f3adb013b4a46c7233149a629 (diff) | |
| download | linux-44d19b8a7548aa25cbc6ebd5f27e958f7142c36b.tar.gz linux-44d19b8a7548aa25cbc6ebd5f27e958f7142c36b.zip | |
dma_buf: change unsigned int and int types into size_t
The num_fences, count, i, and j variables in dma_fence_dedup_array() and
__dma_fence_unwrap_merge() have inconsistent integer types, mixing both
unsigned int and int.
Use type size_t consistently for these instead, and update the return
type of dma_fence_dedup_array() accordingly.
Signed-off-by: Shahyan Soltani <shahyan.soltani@amd.com>
Suggested-by: Philipp Stanner <phasta@mailbox.org>
Link: https://lore.kernel.org/r/20260630160401.67544-1-shahyan.soltani@amd.com
Reviewed-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dma-fence-unwrap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/dma-fence-unwrap.h b/include/linux/dma-fence-unwrap.h index 62df222fe0f1..7bfacdf79de2 100644 --- a/include/linux/dma-fence-unwrap.h +++ b/include/linux/dma-fence-unwrap.h @@ -8,6 +8,8 @@ #ifndef __LINUX_DMA_FENCE_UNWRAP_H #define __LINUX_DMA_FENCE_UNWRAP_H +#include <linux/types.h> + struct dma_fence; /** @@ -48,11 +50,11 @@ struct dma_fence *dma_fence_unwrap_next(struct dma_fence_unwrap *cursor); for (fence = dma_fence_unwrap_first(head, cursor); fence; \ fence = dma_fence_unwrap_next(cursor)) -struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences, +struct dma_fence *__dma_fence_unwrap_merge(size_t num_fences, struct dma_fence **fences, struct dma_fence_unwrap *cursors); -int dma_fence_dedup_array(struct dma_fence **array, int num_fences); +size_t dma_fence_dedup_array(struct dma_fence **array, size_t num_fences); /** * dma_fence_unwrap_merge - unwrap and merge fences |
