summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-10-14 12:15:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-10-14 12:15:22 +0000
commit874a04805a57b8a6f1b282537246ec25a9ab7759 (patch)
tree01ad8c3d2439db6edab1b141b35bea82dc270286
parentc6b6d05e8fdddbe72f143a535cd0b26d650a4258 (diff)
remove unused locally added drm_driver struct members
-rw-r--r--sys/dev/pci/drm/drm_file.c5
-rw-r--r--sys/dev/pci/drm/include/drm/drm_drv.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/pci/drm/drm_file.c b/sys/dev/pci/drm/drm_file.c
index 029ccc7d195..0396fd01c4c 100644
--- a/sys/dev/pci/drm/drm_file.c
+++ b/sys/dev/pci/drm/drm_file.c
@@ -158,12 +158,7 @@ struct drm_file *drm_file_alloc(struct drm_minor *minor)
struct drm_file *file;
int ret;
-#ifdef __linux__
file = kzalloc(sizeof(*file), GFP_KERNEL);
-#else
- file = kzalloc(max(dev->driver->file_priv_size, sizeof(*file)),
- GFP_KERNEL);
-#endif
if (!file)
return ERR_PTR(-ENOMEM);
diff --git a/sys/dev/pci/drm/include/drm/drm_drv.h b/sys/dev/pci/drm/include/drm/drm_drv.h
index 7ed43504f2b..9e9ca1dc847 100644
--- a/sys/dev/pci/drm/include/drm/drm_drv.h
+++ b/sys/dev/pci/drm/include/drm/drm_drv.h
@@ -493,8 +493,6 @@ struct drm_driver {
#ifdef __OpenBSD__
struct uvm_object *(*mmap)(struct file *, vm_prot_t, voff_t, vsize_t);
size_t gem_size;
- size_t buf_priv_size;
- size_t file_priv_size;
#endif
/**