Bug 25264

Summary: Change to drm.h causes breakage of xf86-video-nouveau
Product: DRI Reporter: Bob Gleitsmann <rjgleits>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Bob Gleitsmann 2009-11-24 14:09:13 UTC
Hello,

Some code was removed from drm.h (libdrm) in one of the last two commits that causes compilation of xf86-video-nouveau to fail. the following code was deleted:

#define DRM_IOCTL_NR(n)		_IOC_NR(n)
#define DRM_IOC_VOID		_IOC_NONE
#define DRM_IOC_READ		_IOC_READ
#define DRM_IOC_WRITE		_IOC_WRITE
#define DRM_IOC_READWRITE	_IOC_READ|_IOC_WRITE
#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)

#define DRM_MAJOR       226
#define DRM_MAX_MINOR   15

The last line is what is causing the problem. This was deleted as part of the BSD patch. I don't know if this code applies only to Linux. Putting the code back into drm.h fixes the problem. 

Best Wishes,

Bob Gleitsmann
Comment 1 Pekka Paalanen 2009-11-24 14:22:11 UTC
This should already be fixed by http://cgit.freedesktop.org/mesa/drm/commit/?id=9558f6377ffee680d6bec0808bc113b3139b0d5f

Please, resolve as fixed if it is. Otherwise, provide the compilation log.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.