Bug 25264 - Change to drm.h causes breakage of xf86-video-nouveau
Summary: Change to drm.h causes breakage of xf86-video-nouveau
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: libdrm (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-24 14:09 UTC by Bob Gleitsmann
Modified: 2010-01-14 18:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.