From: jsg Date: Tue, 30 Jan 2018 08:17:31 +0000 (+0000) Subject: add drm_invalid_op() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=816aacf68ba226d7b30f29b6e5ec9e3386936296;p=openbsd add drm_invalid_op() --- 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. *