dma-buf: Include ioctl.h in UAPI header
authorIsaac J. Manjarres <isaacmanjarres@google.com>
Tue, 3 Mar 2026 00:23:09 +0000 (16:23 -0800)
committerChristian König <christian.koenig@amd.com>
Tue, 3 Mar 2026 07:55:39 +0000 (08:55 +0100)
commita116bac87118903925108e57781bbfc7a7eea27b
tree0715c4378bc7bc041492da4763e9f2bf7dd983f6
parent6270ee26e1edd862ea17e3eba148ca8fb2c99dc9
dma-buf: Include ioctl.h in UAPI header

include/uapi/linux/dma-buf.h uses several macros from ioctl.h to define
its ioctl commands. However, it does not include ioctl.h itself. So,
if userspace source code tries to include the dma-buf.h file without
including ioctl.h, it can result in build failures.

Therefore, include ioctl.h in the dma-buf UAPI header.

Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20260303002309.1401849-1-isaacmanjarres@google.com
include/uapi/linux/dma-buf.h