From 867f95ba5678623d8fbbc824b30166fbf4fe2c9e Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Sat, 18 Jan 2025 13:21:20 -0800 Subject: [PATCH] The import sync file variants of the ioctl and struct need the same treatment as the export variants. --- src/test/v4l_dmabuf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/v4l_dmabuf.c b/src/test/v4l_dmabuf.c index d15b6939c21..901f464f026 100644 --- a/src/test/v4l_dmabuf.c +++ b/src/test/v4l_dmabuf.c @@ -11,6 +11,13 @@ struct dma_buf_export_sync_file { }; #define DMA_BUF_IOCTL_EXPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 2, struct dma_buf_export_sync_file) #endif +#ifndef DMA_BUF_IOCTL_IMPORT_SYNC_FILE +struct dma_buf_import_sync_file { + uint32_t flags; + int32_t fd; +}; +#define DMA_BUF_IOCTL_IMPORT_SYNC_FILE _IOWR(DMA_BUF_BASE, 3, struct dma_buf_import_sync_file) +#endif static const char device_name[] = "/dev/video0";