Skip to content

Commit a116bac

Browse files
isaacmanjarresChristianKoenigAMD
authored andcommitted
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 <[email protected]> Reviewed-by: T.J. Mercier <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6270ee2 commit a116bac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/uapi/linux/dma-buf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#ifndef _DMA_BUF_UAPI_H_
2121
#define _DMA_BUF_UAPI_H_
2222

23+
#include <linux/ioctl.h>
2324
#include <linux/types.h>
2425

2526
/**

0 commit comments

Comments
 (0)