Re: nvidia-driver 195.22 use horribly broken on amd64 between r206173 and

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Thu, 27 May 2010 22:12:58 +0300
On Thu, May 27, 2010 at 11:54:27AM -0700, Doug Barton wrote:
> On 05/26/10 09:51, Kostik Belousov wrote:
> >I did a quick glance over the driver, try this:
> >http://people.freebsd.org/~kib/misc/nvidia-vm_page_lock.1.patch
> >I did not even compiled the patched driver.
> 
> cc -pipe -g -g -g -DNV_VERSION_STRING=\"195.36.15\" -D__KERNEL__ -DNVRM 
> -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/src -I. -I_at_ 
> -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 
> --param large-function-growth=1000 -fno-common -g 
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
> -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector 
> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
> -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
> -fformat-extensions -c nvidia_subr.c
> cc1: warnings being treated as errors
> nvidia_subr.c: In function 'nv_alloc_system_pages':
> nvidia_subr.c:1306: warning: implicit declaration of function 'vm_page_lock'
> nvidia_subr.c:1306: warning: nested extern declaration of 'vm_page_lock'
> nvidia_subr.c:1308: warning: implicit declaration of function 
> 'vm_page_unlock'
> nvidia_subr.c:1308: warning: nested extern declaration of 'vm_page_unlock'
> *** Error code 1

I think you have stale/wrong includes used by the build. I just checked
that driver indeed builds with my patch. vm_page_lock() and vm_page_unlock()
are the macros defined in vm/vm_page.h that are present since first
Kip commit.

Look at the target of the "_at_" symlink in the driver directory.

Received on Thu May 27 2010 - 17:13:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:03 UTC