Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Building the nvidia and ati proprietary drivers against the latest kernel.git
Date: Wed, 18 Apr 2012 13:27:46
Message-Id: jmmfcs$5ef$1@dough.gmane.org
In Reply to: Re: [gentoo-user] Re: Building the nvidia and ati proprietary drivers against the latest kernel.git by "Stefan G. Weichinger"
1 On 04/18/2012 03:46 AM, Stefan G. Weichinger wrote:
2 > Am 18.04.2012 12:08, schrieb Stefan G. Weichinger:
3 >> Am 18.04.2012 04:16, schrieb Pandu Poluan:
4 >>
5 >>>> [I'm falling asleep at the keyboard now and I don't want to give you
6 >>>> bogus information, so I'll be back tomorrow with the rest of it.]
7 >>>>
8 >>>>
9 >>>
10 >>> Bah! A cliffhanger!
11 >>>
12 >>> *twiddles thumb waiting for Walt to wake up*
13
14 I'm back. Why do I feel just as crappy now as I did last night? Must
15 be the cheap wine, I guess.
16
17 >> Ah, yeah, looking forward as well ;-)
18 >
19 > I don't want to spoil .... but I got it working already :-P
20
21 Oh, go ahead and spoil. I'll forgive you eventually.
22
23 Hey, I just pulled from Linus again and emerged nvidia-drivers and I see
24 that the test for kernel version no longer fails. The rest of the fix is
25 trivial now:
26
27 diff -ur kernel/nv-linux.h nvidia/nv-linux.h
28 --- kernel/nv-linux.h 2012-04-05 21:37:05.000000000 -0700
29 +++ nvidia/nv-linux.h 2012-04-12 06:58:31.000000000 -0700
30 @@ -111,7 +111,6 @@
31 #include <linux/timer.h>
32
33 #include <asm/div64.h> /* do_div() */
34 -#include <asm/system.h> /* cli, sli, save_flags */
35 #include <asm/io.h> /* ioremap, virt_to_phys */
36 #include <asm/uaccess.h> /* access_ok */
37 #include <asm/page.h> /* PAGE_OFFSET */
38 @@ -1204,7 +1203,6 @@
39 #endif
40
41 #if !defined(KERNEL_2_4) && !defined(NV_PM_MESSAGE_T_PRESENT)
42 -typedef u32 pm_message_t;
43 #endif
44
45 #if defined(KERNEL_2_4) && (defined(CONFIG_APM) || defined(CONFIG_APM_MODULE))
46
47 This works because a recent kernel commit removed system.h completely and now
48 the #include system.h is not needed. Also, any time you see a "previously
49 defined" error you can try to work around it by deleting the #include that
50 introduced the "previous definition" in the first place. May work, may not,
51 but it's always worth trying. This time it worked :)
52
53 Hope I didn't forget anything...

Replies