From: Jesse Barnes Date: Sun, 27 Apr 2008 16:42:17 +0000 (-0700) Subject: Use fixed sized types in new ioctls X-Git-Tag: submit/1.0/20121108.012404~892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f8e4060859651993921281445ec00940c577222;p=profile%2Fivi%2Flibdrm.git Use fixed sized types in new ioctls Make both crtc and the command argument 32 bits to avoid any 32-on-64 compat issues. --- diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index 592ea2a..8f27d7f 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -437,7 +437,7 @@ int drm_modeset_ctl(struct drm_device *dev, void *data, int crtc, ret = 0; u32 new; - crtc = modeset->arg; + crtc = modeset->crtc; if (crtc >= dev->num_crtcs) { ret = -EINVAL; goto out; diff --git a/shared-core/drm.h b/shared-core/drm.h index da149dc..52b01cd 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -565,8 +565,8 @@ union drm_wait_vblank { * \sa drmModesetCtl(). */ struct drm_modeset_ctl { - unsigned long arg; - int cmd; + uint32_t crtc; + uint32_t cmd; }; /**