Bug 13279

Summary: Error compiling DRM/Linux-core on newer kernel
Product: DRI Reporter: Ashley Wee <awee>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium    
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.