From 08347e6e199b8aaa962bc44cce4d4a4e65e52524 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 6 Jan 2024 12:50:58 +0000 Subject: [PATCH] move struct file_operations to linux/fs.h ok kettenis@ --- sys/dev/pci/drm/include/drm/drm_gem_dma_helper.h | 1 - sys/dev/pci/drm/include/linux/fs.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/drm/drm_gem_dma_helper.h b/sys/dev/pci/drm/include/drm/drm_gem_dma_helper.h index be399462a56..83f05e99982 100644 --- a/sys/dev/pci/drm/include/drm/drm_gem_dma_helper.h +++ b/sys/dev/pci/drm/include/drm/drm_gem_dma_helper.h @@ -35,7 +35,6 @@ struct drm_gem_dma_object { #define to_drm_gem_dma_obj(gem_obj) container_of(gem_obj, struct drm_gem_dma_object, base) -struct file_operations { int dummy; }; #define DEFINE_DRM_GEM_DMA_FOPS(name) struct file_operations name = {}; #define DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE(x) \ diff --git a/sys/dev/pci/drm/include/linux/fs.h b/sys/dev/pci/drm/include/linux/fs.h index 7f80d4c4765..cb164d1d652 100644 --- a/sys/dev/pci/drm/include/linux/fs.h +++ b/sys/dev/pci/drm/include/linux/fs.h @@ -19,4 +19,7 @@ struct address_space; struct seq_file; +struct file_operations { +}; + #endif -- 2.20.1