[Intel-gfx] Error compiling drm-intel-next: ‘EINVAL’ undeclared
dolphinling
lists at dolphinling.net
Tue Jul 7 05:09:14 CEST 2009
yakui wrote:
> On Mon, 2009-07-06 at 22:48 +0800, dolphinling wrote:
>> CC [M] drivers/gpu/drm/i915/i915_drv.o
>> CC [M] drivers/gpu/drm/i915/i915_dma.o
>> CC [M] drivers/gpu/drm/i915/i915_irq.o
>> In file included from drivers/gpu/drm/i915/i915_irq.c:29:
>> include/linux/sysrq.h: In function ‘__reterr’:
>> include/linux/sysrq.h:66: error: ‘EINVAL’ undeclared (first use in this function)
>> include/linux/sysrq.h:66: error: (Each undeclared identifier is reported only once
>> include/linux/sysrq.h:66: error: for each function it appears in.)
>> make[4]: *** [drivers/gpu/drm/i915/i915_irq.o] Error 1
>> make[3]: *** [drivers/gpu/drm/i915] Error 2
>> make[2]: *** [drivers/gpu/drm] Error 2
>> make[1]: *** [drivers/gpu] Error 2
>> make: *** [drivers] Error 2
>>
>> I'm not entirely sure when this started happening; based on an ls -l /boot, it
>> looks like it was sometime between 2009-06-19 and now.
>>
>> .config attached, in case it's needed. If there's anything else you need let me
>> know.
> It seems that the header file of "linux/errno.h" is not included.
>
> will you please try the attached patch and see whether it works for
> you?
> Thanks.
It looks like a fix for this is already in Linus' tree:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=82e3310ace59794ecf0f531eca94647b2863dfda
I will wait until the drm-intel-next tree gets that fix.
--
dolphinling
<http://dolphinling.net/>
More information about the Intel-gfx
mailing list