Bug 13279 - Error compiling DRM/Linux-core on newer kernel
Summary: Error compiling DRM/Linux-core on newer kernel
Status: RESOLVED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-16 13:44 UTC by Ashley Wee
Modified: 2010-12-02 20:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley Wee 2007-11-16 13:44:50 UTC
I am using SUSE SLES 10 with Kernel 2.6.16.21-0.8-smp

When I compile DRM/linux-core I get the error message:
drm/linux-core/drm_compat.h:324: error: conflicting types for @idr_replace@
/usr/src/linux-2.6.16.21-0.8/include/linux/idr.h:81: error: previous declaration of @idr_replace@ was here
Comment 1 Jesse Barnes 2007-11-16 14:03:52 UTC
This kernel may also be too old.  Look at the prototypes in drm_compat.h and include/linux/idr.h.  If they're actually compatible, you can fix the version checks protecting the idr stuff in drm_compat.h and drm_compat.c to be #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)) instead.
Comment 2 Matt Turner 2010-12-02 20:17:17 UTC
Closing due to inactivity. Reopen if this is still a problem.


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.