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

From: Chris Wilson
Date: Tue Sep 28 2010 - 09:46:27 EST


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.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
-Chris

--
Chris Wilson, Intel Open Source Technology Centre
--
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/