Files
Jérôme Pouiller 58c3147606 UPSTREAM: dma-buf: fix use of DMA_BUF_SET_NAME_{A,B} in userspace
The typedefs u32 and u64 are not available in userspace. Thus user get
an error he try to use DMA_BUF_SET_NAME_A or DMA_BUF_SET_NAME_B:

    $ gcc -Wall   -c -MMD -c -o ioctls_list.o ioctls_list.c
    In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1,
                     from /usr/include/linux/ioctl.h:5,
                     from /usr/include/asm-generic/ioctls.h:5,
                     from ioctls_list.c:11:
    ioctls_list.c:463:29: error: ‘u32’ undeclared here (not in a function)
      463 |     { "DMA_BUF_SET_NAME_A", DMA_BUF_SET_NAME_A, -1, -1 }, // linux/dma-buf.h
          |                             ^~~~~~~~~~~~~~~~~~
    ioctls_list.c:464:29: error: ‘u64’ undeclared here (not in a function)
      464 |     { "DMA_BUF_SET_NAME_B", DMA_BUF_SET_NAME_B, -1, -1 }, // linux/dma-buf.h
          |                             ^~~~~~~~~~~~~~~~~~

The issue was initially reported here[1].

[1]: https://github.com/jerome-pouiller/ioctl/pull/14

Bug: 254441685
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Fixes: a5bff92eaac4 ("dma-buf: Fix SET_NAME ioctl uapi")
CC: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220517072708.245265-1-Jerome.Pouiller@silabs.com
Signed-off-by: Christian König <christian.koenig@amd.com>
(cherry picked from commit 7c3e9fcad9c7d8bb5d69a576044fb16b1d2e8a01)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: If83a6fecc7ef885ca070214b4c03d317851f207a
Signed-off-by: Naveen <133593113+elohim-etz@users.noreply.github.com>
2026-01-20 13:45:19 +00:00
..
2023-01-08 12:35:36 +00:00
2017-08-31 17:32:38 -04:00
2017-12-05 11:26:34 +01:00
2023-01-08 12:35:36 +00:00
2023-01-08 12:35:36 +00:00
2023-11-08 11:21:06 +01:00
2023-01-08 12:35:36 +00:00
2023-01-08 12:35:36 +00:00
2023-01-08 12:35:36 +00:00
2021-04-16 11:57:51 +02:00
2018-02-16 20:22:54 +01:00
2023-01-08 12:35:36 +00:00
2019-08-12 13:29:46 -04:00
2023-01-08 12:35:36 +00:00
2020-01-09 14:58:35 -08:00
2023-09-23 10:46:58 +02:00
2025-12-23 13:40:53 +00:00
2023-01-08 12:35:36 +00:00
2023-01-08 12:35:36 +00:00
2022-03-11 10:06:50 +01:00