Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] Re: 2.6.34 kernel compile error: DRM problem?
Date: Sun, 18 Jul 2010 17:03:36
Message-Id: AANLkTimRLNWeEvZAkrPfwftgBnnhVj0_E6_V7r6YK60s@mail.gmail.com
In Reply to: [gentoo-user] 2.6.34 kernel compile error: DRM problem? by Grant
1 > I tried to update my laptop and desktop to 2.6.34 but compilation
2 > fails with this error:
3 >
4 > drivers/gpu/drm/i915/i915_dma.c: In function 'i915_switcheroo_can_switch':
5 > drivers/gpu/drm/i915/i915_dma.c:1419: error: invalid operands to
6 > binary == (have 'atomic_t' and 'int')
7 >
8 > or:
9 >
10 > drivers/gpu/drm/nouveau/nouveau_state.c: In function
11 > 'nouveau_switcheroo_can_switch':
12 > drivers/gpu/drm/nouveau/nouveau_state.c:394: error: invalid operands
13 > to binary == (have 'atomic_t' and 'int')
14 >
15 > They compile if I disable DRM.  I've tried with and without
16 > CONFIG_VGA_SWITCHEROO with the same result.  Does anyone know how to
17 > fix this?  I'm trying to use hardened-sources-2.6.34 from the anarchy
18 > overlay on both systems.
19 >
20 > - Grant
21
22 This is fixed with hardened-2.6.34-r2 in the anarchy overlay.
23
24 - Grant