]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
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)
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

index 5a6fda66d9adf01438619e7e67fa69f0fec2d88d..e827c9d20c5d351f7624deb0dcd4cc1bf908a6fe 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef _DMA_BUF_UAPI_H_
 #define _DMA_BUF_UAPI_H_
 
+#include <linux/ioctl.h>
 #include <linux/types.h>
 
 /**