Quote:
Originally Posted by rg2003
Just updated to kernel 3.6-rc1 (from kernel.org git) and the latest driver (304.30) does not compile:
........ from /home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.c:15:
/usr/src/linux-3.6-rc1/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user':
/usr/src/linux-3.6-rc1/arch/x86/include/asm/uaccess_64.h:62:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.c: In function ‘nv_acpi_remove':
/home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.c:303:9: error: too many arguments to function ‘acpi_os_wait_events_complete'
In file included from include/acpi/acpi.h:63:0,
from /home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-linux.h:274,
from /home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.c:15:
include/acpi/acpiosxf.h:208:6: note: declared here
make[4]: *** [/home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.o] Error
1
make[3]: *** [_module_/home/rgadsdon/NVIDIA-Linux-x86_64-304.30/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [install] Error 2
|
Edit NVIDIA-Linux-x86_64-304.30/kernel/nv-acpi.c by removing the NULL in brackets.
Fix
---
- acpi_os_wait_events_complete(NULL);
+ acpi_os_wait_events_complete();