I tried to update my laptop and desktop to 2.6.34 but compilation
fails with this error:
drivers/gpu/drm/i915/i915_dma.c: In function 'i915_switcheroo_can_switch':
drivers/gpu/drm/i915/i915_dma.c:1419: error: invalid operands to
binary == (have 'atomic_t' and 'int')
or:
drivers/gpu/drm/nouveau/nouveau_state.c: In function
'nouveau_switcheroo_can_switch':
drivers/gpu/drm/nouveau/nouveau_state.c:394: error: invalid operands
to binary == (have 'atomic_t' and 'int')
They compile if I disable DRM. I've tried with and without
CONFIG_VGA_SWITCHEROO with the same result. Does anyone know how to
fix this? I'm trying to use hardened-sources-2.6.34 from the anarchy
overlay on both systems.
- Grant
07-16-2010, 07:50 PM
Grant
2.6.34 kernel compile error: DRM problem?
> I tried to update my laptop and desktop to 2.6.34 but compilation
> fails with this error:
>
> drivers/gpu/drm/i915/i915_dma.c: In function 'i915_switcheroo_can_switch':
> drivers/gpu/drm/i915/i915_dma.c:1419: error: invalid operands to
> binary == (have 'atomic_t' and 'int')
>
> or:
>
> drivers/gpu/drm/nouveau/nouveau_state.c: In function
> 'nouveau_switcheroo_can_switch':
> drivers/gpu/drm/nouveau/nouveau_state.c:394: error: invalid operands
> to binary == (have 'atomic_t' and 'int')
>
> They compile if I disable DRM. *I've tried with and without
> CONFIG_VGA_SWITCHEROO with the same result. *Does anyone know how to
> fix this? *I'm trying to use hardened-sources-2.6.34 from the anarchy
> overlay on both systems.
>
> - Grant
Any idea on this guys?
- Grant
07-18-2010, 04:55 PM
Grant
2.6.34 kernel compile error: DRM problem?
> I tried to update my laptop and desktop to 2.6.34 but compilation
> fails with this error:
>
> drivers/gpu/drm/i915/i915_dma.c: In function 'i915_switcheroo_can_switch':
> drivers/gpu/drm/i915/i915_dma.c:1419: error: invalid operands to
> binary == (have 'atomic_t' and 'int')
>
> or:
>
> drivers/gpu/drm/nouveau/nouveau_state.c: In function
> 'nouveau_switcheroo_can_switch':
> drivers/gpu/drm/nouveau/nouveau_state.c:394: error: invalid operands
> to binary == (have 'atomic_t' and 'int')
>
> They compile if I disable DRM. *I've tried with and without
> CONFIG_VGA_SWITCHEROO with the same result. *Does anyone know how to
> fix this? *I'm trying to use hardened-sources-2.6.34 from the anarchy
> overlay on both systems.
>
> - Grant
This is fixed with hardened-2.6.34-r2 in the anarchy overlay.