Bug 13206

Summary: parse error before "pm_message_t"
Product: DRI Reporter: Ashley Wee <awee>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: high CC: awee, jbarnes
Version: XOrg git   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Ashley Wee 2007-11-12 14:09:28 UTC
Hello I compiled the package DRM\linux-core and got the following error on 2 different machines. Please fix:

drm/linux-core/drm_sysfs.c:32 error: parse error before "pm_message_t"
warning function declaration isn't a prototype
In function 'drm_sysfs_suspend':
error: 'dev' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
Comment 1 Jesse Barnes 2007-11-12 14:46:47 UTC
What version of the kernel are you building against?  Sounds like it might not have "struct device" available somehow?
Comment 2 Ashley Wee 2007-11-15 15:14:34 UTC
I am using the SUSE SLES 9 SP3 kernel 2.6.5-7.244-smp kernel.
Comment 3 Jesse Barnes 2007-11-15 15:29:40 UTC
That kernel is too old to reasonably build DRM against.  Try a more recent kernel, like 2.6.9+.  Unless you want to fix the problem yourself and check it in that is :)
Comment 4 Ashley Wee 2007-11-16 13:36:58 UTC
Can you tell me where is this "struct device" defined in which rpm package, library and/or header?
Comment 5 Jesse Barnes 2007-11-16 14:01:13 UTC
It's in the kernel, in include/linux/device.h.

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.