[PATCH] drm mode: fix drmIoctl wrapper

2011-06-19 Thread Marcin Slusarz
On Sun, Jun 05, 2011 at 07:28:20PM +0200, Marcin Slusarz wrote: > Both drmIoctl and ioctl define second argument as unigned long, but > DRM_IOCTL do not. > > Debugging/tracing tools (like strace or valgrind) on 64-bit machines see > different request value for ioctls with 32nd bit set, because cas

Re: [PATCH] drm mode: fix drmIoctl wrapper

2011-06-19 Thread Marcin Slusarz
On Sun, Jun 05, 2011 at 07:28:20PM +0200, Marcin Slusarz wrote: > Both drmIoctl and ioctl define second argument as unigned long, but > DRM_IOCTL do not. > > Debugging/tracing tools (like strace or valgrind) on 64-bit machines see > different request value for ioctls with 32nd bit set, because cas

[PATCH] drm mode: fix drmIoctl wrapper

2011-06-05 Thread Marcin Slusarz
Both drmIoctl and ioctl define second argument as unigned long, but DRM_IOCTL do not. Debugging/tracing tools (like strace or valgrind) on 64-bit machines see different request value for ioctls with 32nd bit set, because casting signed int to unsigned long extends 32nd bit to upper word, so 0x8000

[PATCH] drm mode: fix drmIoctl wrapper

2011-06-05 Thread Marcin Slusarz
Both drmIoctl and ioctl define second argument as unigned long, but DRM_IOCTL do not. Debugging/tracing tools (like strace or valgrind) on 64-bit machines see different request value for ioctls with 32nd bit set, because casting signed int to unsigned long extends 32nd bit to upper word, so 0x8000