Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
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
Old 08-23-10, 12:28 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Heads up for 2.6.36 and 256.44

Thank you for reporting this problem. I saw one earlier report of this and have made changes in the driver for future releases (likely not 256.xx initially, though). Note that the driver already plugs in an unlocked_ioctl handler.
zander is offline   Reply With Quote
Old 08-24-10, 02:08 AM   #3
hvengel
Registered User
 
Join Date: May 2006
Posts: 57
Default Re: Heads up for 2.6.36 and 256.44

OK so what version of the driver should we be using with 2.6.36? Or are we stuck with hand patching the driver to get it to work?
hvengel is offline   Reply With Quote
Old 08-24-10, 04:17 AM   #4
JackieBrown
Registered User
 
Join Date: Dec 2004
Posts: 47
Default Re: Heads up for 2.6.36 and 256.44

Quote:
Originally Posted by hvengel View Post
OK so what version of the driver should we be using with 2.6.36? Or are we stuck with hand patching the driver to get it to work?
When was 2.6.36 released?
JackieBrown is offline   Reply With Quote
Old 08-24-10, 08:43 AM   #5
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default Re: Heads up for 2.6.36 and 256.44

It is NOT released yet. Do not worry, people, NVIDIA is always in sync with kernel releases.
gonzo_s is offline   Reply With Quote
Old 08-24-10, 09:18 AM   #6
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Heads up for 2.6.36 and 256.44

Quote:
Originally Posted by JackieBrown View Post
When was 2.6.36 released?
We are still at vanilla 2.6.36-rc2 and I'm running 2.6.36-rc2-git1 with driver 256.44, so 2.6.36 final is still some way off.
There are often API changes that effect NVidia drivers so it's good to note potential problems ahead of the final kernel release so that they can be fixed early or at least the developers are aware of what's coming in the next stable kernel.
So if you are using up to 2.6.35 there isn't a problem. I test and run vanilla kernels, NVidia Beta drivers and the latest VirtualBox to provide feedback to the developers. In my time I've found some humdingers, some where I was the only person to hit the problem. never had a data corruption or data loss.
Developers don't have all the hardware/software combinations, so testing and feedback stops the mass of users from suddenly hitting the buffer stop when the stable kernel hits the streets.

For backwards compatibility I had a problem building the module with 2.6.33.7-rt29 which I may have a look at again later. I didn't look closely at the error with 256.35 or 256.44, I ran with the distro's nv_drv.so module as I wanted to run some jack realtime audio tests with some SDR (Software Defined Radio) hardware and software.
siddly is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.