Re: drivers/gpu/drm/i915/i915_suspend.c:792: error: const structintel_device_info has no member named gen

From: Jeff Chua
Date: Tue Sep 28 2010 - 20:57:35 EST


On Tue, Sep 28, 2010 at 9:46 PM, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 28 Sep 2010 21:36:09 +0800, Jeff Chua <jeff.chua.linux@xxxxxxxxx> wrote:
>>   CC      drivers/gpu/drm/i915/i915_suspend.o
>> drivers/gpu/drm/i915/i915_suspend.c: In function 'i915_save_state':
>> drivers/gpu/drm/i915/i915_suspend.c:792: error: 'const struct
>> intel_device_info' has no member named 'gen'
>> drivers/gpu/drm/i915/i915_suspend.c: In function 'i915_restore_state':
>> drivers/gpu/drm/i915/i915_suspend.c:827: error: 'const struct
>> intel_device_info' has no member named 'gen'
>> make[4]: *** [drivers/gpu/drm/i915/i915_suspend.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
>
> Which tree are you compiling? As it is missing:
>
> commit c96c3a8cb7fadcb33d9a5ebe35fcee8b7d0a7946
> Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Date:   Wed Aug 11 09:59:24 2010 +0100
>
>    drm/i915: Include a generation number in the device info
>
>    To simplify the IS_GEN[234] macros and to enable switching.

Chris,

I must have done something wrong. I rebuild from scratch and now it's ok.

Thanks,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/