diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-08 13:56:26 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-30 10:47:58 +0200 |
commit | 4b63539bb2f604b26ef4951c5c14828d24a7ce6c (patch) | |
tree | c4cdc3835964beda589fd1783497ec6027cb555e /include/drm/drmP.h | |
parent | a7fb8a23c1afa607ec8ce9f61df645f37c529434 (diff) | |
download | linux-4b63539bb2f604b26ef4951c5c14828d24a7ce6c.tar.gz linux-4b63539bb2f604b26ef4951c5c14828d24a7ce6c.tar.bz2 linux-4b63539bb2f604b26ef4951c5c14828d24a7ce6c.zip |
drm: Define a drm_invalid_op ioctl implementation
And use it in radeon to replace all the ioctls no longer valid in kms
mode. I plan to also use this later on when nuking the ums support for
i915.
Note that setting the function pointer in the ioctl table to NULL
would amount to the same, but that results in some debug output from
the drm_ioctl() function. I've figured it's cleaner to have a
special-purpose function.
Cc: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index d0251ac44a50..967d8a03c0e1 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -910,6 +910,8 @@ extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); /* Misc. IOCTL support (drm_ioctl.c) */ int drm_noop(struct drm_device *dev, void *data, struct drm_file *file_priv); +int drm_invalid_op(struct drm_device *dev, void *data, + struct drm_file *file_priv); /* Cache management (drm_cache.c) */ void drm_clflush_pages(struct page *pages[], unsigned long num_pages); |