From 816aacf68ba226d7b30f29b6e5ec9e3386936296 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 30 Jan 2018 08:17:31 +0000 Subject: [PATCH] add drm_invalid_op() --- sys/dev/pci/drm/drm_drv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 065691abe85..1cefbb8e5e8 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_drv.c,v 1.155 2018/01/13 13:03:42 robert Exp $ */ +/* $OpenBSD: drm_drv.c,v 1.156 2018/01/30 08:17:31 jsg Exp $ */ /*- * Copyright 2007-2009 Owain G. Ainsworth * Copyright © 2008 Intel Corporation @@ -297,6 +297,12 @@ int drm_noop(struct drm_device *dev, void *data, return 0; } +int drm_invalid_op(struct drm_device *dev, void *data, + struct drm_file *file_priv) +{ + return -EINVAL; +} + /* * attach drm to a pci-based driver. * -- 2.20.1