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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-11-07, 11:39 AM   #1
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Does 100.14.11 compile on 2.6.23-rc2? (x86_64)

If you get a failure like:

Code:
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c: In function ‘nvidia_init_module’:
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1326: error: too many arguments to function ‘kmem_cache_create’
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1435: error: too many arguments to function ‘kmem_cache_create’
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1569: error: void value not ignored as it ought to be
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c: In function ‘nvidia_exit_module’:
/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1601: error: void value not ignored as it ought to be
make[3]: *** [/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/root/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernel-linus-2.6.23-0.rc2.1mdv'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [module] Error 1
Then these patches will solve the problem:

Code:
-- nv-linux.h~ 2007-06-13 17:18:38.000000000 -0700
+++ nv-linux.h  2007-08-11 09:37:35.000000000 -0700
@@ -533,7 +533,7 @@
 #define NV_KMEM_CACHE_CREATE(kmem_cache, name, type)            \
     {                                                           \
         kmem_cache = kmem_cache_create(name, sizeof(type),      \
-                        0, 0, NULL, NULL);                      \
+                        0, 0, NULL);                            \
     }

 #define NV_KMEM_CACHE_DESTROY(kmem_cache)                       \
Code:
--- nv.c~       2007-06-13 17:18:38.000000000 -0700
+++ nv.c        2007-08-11 09:39:28.000000000 -0700
@@ -1566,9 +1566,8 @@
         if (apm_nv_dev[i] != NULL) pm_unregister(apm_nv_dev[i]);
 #endif

-    if (unregister_chrdev(nv_major, "nvidia") < 0)
-        nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n");
-
+    unregister_chrdev(nv_major, "nvidia");
+
     for (i = 0; i < num_nv_devices; i++)
     {
         if (nv_linux_devices[i].dev)
@@ -1597,10 +1596,9 @@
     nv_stack_t *sp = __nv_init_sp;

     nv_printf(NV_DBG_INFO, "NVRM: nvidia_exit_module\n");
-
-    if (unregister_chrdev(nv_major, "nvidia") < 0)
-        nv_printf(NV_DBG_ERRORS, "NVRM: unregister nv chrdev failed\n");
-
+
+    unregister_chrdev(nv_major, "nvidia");
+
     for (i = 0; i < num_nv_devices; i++)
     {
         struct pci_dev *dev;
xorbe is offline   Reply With Quote
Old 08-11-07, 12:30 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Does 100.14.11 compile on 2.6.23-rc2? (x86_64)

Please also see http://www.nvnews.net/vbulletin/showthread.php?t=96087, http://www.nvnews.net/vbulletin/showthread.php?t=96299 and http://www.nvnews.net/vbulletin/showthread.php?t=95875.
zander is offline   Reply With Quote
Old 08-11-07, 12:34 PM   #3
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: Does 100.14.11 compile on 2.6.23-rc2? (x86_64)

Er, yah, the first thread is the same thing. The last two threads are different -- never saw any "__you_cannot_kmalloc_that_much". Many thanks! (That first thread is on page 5, I only went through the first 2 pages of threads... sigh...)
xorbe 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 07:16 PM.


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