From: Ville Syrjälä Date: Fri, 27 Mar 2015 13:51:55 +0000 (+0200) Subject: drm: Fix DRM_IOCTL_DEF_DRV() X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~19^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7d3d3e289c9870ae688780a0f9807bb5ae9faf;p=pandora-kernel.git drm: Fix DRM_IOCTL_DEF_DRV() Currently DRM_IOCTL_DEF_DRV does '[DRM_IOCTL_NR(DRM_##ioctl)]' which doesn't make much sense since DRM_##ioctl is already a the raw ioctl number. So change it to 'DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE' which means the DRM_IOCTL_NR() now makes sense, and also this also means if there's a mistake in the DRM_IOCTL_##ioctl macros we might get a warning about it (eg. we would have gotten a sparse warning about the i915 colorkey get/set ioctl being defined to be the same thing). Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed