View Single Post
Old 08-23-10, 09:55 AM   #1
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Heads up for 2.6.36 and 256.44

/usr/src/NVIDIA-Linux-x86_64-256.35/kernel/nv.c:426:5: error: unknown field
‘ioctl’ specified in initializer
/usr/src/NVIDIA-Linux-x86_64-256.35/kernel/nv.c:426:5: warning: initializati
on from incompatible pointer type
make[4]: *** [/usr/src/NVIDIA-Linux-x86_64-256.35/kernel/nv.o] Error 1
make[3]: *** [_module_/usr/src/NVIDIA-Linux-x86_64-256.35/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.

Fixed with the following patch, I thought the "#if defined(HAVE_UNLOCKED_IOCTL)" would have taken care of it.
# diff -u NVIDIA-Linux-x86_64-256.44/kernel/nv.c nv.c
--- NVIDIA-Linux-x86_64-256.44/kernel/nv.c 2010-08-23 12:41:11.000000000 +0100
+++ nv.c 2010-08-23 15:38:58.042981847 +0100
@@ -423,7 +423,7 @@
static struct file_operations nv_fops = {
.owner = THIS_MODULE,
.poll = nv_kern_poll,
- .ioctl = nv_kern_ioctl,
+ .unlocked_ioctl = nv_kern_unlocked_ioctl,
#if defined(HAVE_UNLOCKED_IOCTL)
.unlocked_ioctl = nv_kern_unlocked_ioctl,
#endif
siddly is offline   Reply With Quote