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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-31-09, 06:32 PM   #1
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default 185.13 and 2.6.29-git8 module build failure

/usr/src/NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:591: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/usr/src/NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:592: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/usr/src/NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c:593: error: ‘struct proc_dir_entry’ has no member named ‘owner’

I haven't had a chance to look at "nv.c" yet.
Member "owner" has been removed from the kernel.
http://lkml.indiana.edu/hypermail/li...3.3/03602.html
Alexey Dobriyan (3):
proc 1/2: do PDE usecounting even for ->read_proc, ->write_proc
proc 2/2: remove struct proc_dir_entry:wner
Revert "proc: revert /proc/uptime to ->read_proc hook"
siddly is offline   Reply With Quote
Old 03-31-09, 06:56 PM   #2
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: 185.13 and 2.6.29-git8 module build failure

Commenting out all refernces to "owner" fixed it.

--- /nv.c_18513 2009-03-31 22:32:55.414206299 +0000
+++ /usr/src/NVIDIA-Linux-x86_64-185.13-pkg2/usr/src/nv/nv.c 2009-03-31 22:41:43.550331210 +0000
@@ -369,7 +369,7 @@
/* character driver entry points */

static struct file_operations nv_fops = {
- .owner = THIS_MODULE,
+/* .owner = THIS_MODULE, */
.poll = nv_kern_poll,
.ioctl = nv_kern_ioctl,
#if defined(HAVE_UNLOCKED_IOCTL)
@@ -588,9 +588,9 @@
* Set the module owner to ensure that the reference
* count reflects accesses to the proc files.
*/
- proc_nvidia->owner = THIS_MODULE;
+/* proc_nvidia->owner = THIS_MODULE;
proc_nvidia_cards->owner = THIS_MODULE;
- proc_nvidia_warnings->owner = THIS_MODULE;
+ proc_nvidia_warnings->owner = THIS_MODULE; */

for (j = 0; j < num_nv_devices; j++)
{
@@ -610,7 +610,7 @@

entry->data = nv;
entry->read_proc = nv_kern_read_cardinfo;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

if (nv_find_pci_capability(dev, PCI_CAP_ID_AGP))
{
@@ -624,7 +624,7 @@
goto failed;
}

- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */
proc_nvidia_agp = entry;

entry = create_proc_entry("status", flags, proc_nvidia_agp);
@@ -635,7 +635,7 @@

entry->data = nv;
entry->read_proc = nv_kern_read_status;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp);
if (!entry) {
@@ -645,7 +645,7 @@

entry->data = NULL;
entry->read_proc = nv_kern_read_agpinfo;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

entry = create_proc_entry("card", flags, proc_nvidia_agp);
if (!entry) {
@@ -655,7 +655,7 @@

entry->data = nv;
entry->read_proc = nv_kern_read_agpinfo;
- entry->owner = THIS_MODULE;
if (nv_find_pci_capability(dev, PCI_CAP_ID_AGP))
{
@@ -624,7 +624,7 @@
goto failed;
}

- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */
proc_nvidia_agp = entry;

entry = create_proc_entry("status", flags, proc_nvidia_agp);
@@ -635,7 +635,7 @@

entry->data = nv;
entry->read_proc = nv_kern_read_status;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp);
if (!entry) {
@@ -645,7 +645,7 @@

entry->data = NULL;
entry->read_proc = nv_kern_read_agpinfo;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

entry = create_proc_entry("card", flags, proc_nvidia_agp);
if (!entry) {
@@ -655,7 +655,7 @@

entry->data = nv;
entry->read_proc = nv_kern_read_agpinfo;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */
}

NV_PCI_DEV_PUT(dev);
@@ -666,14 +666,14 @@
goto failed;

entry->read_proc = nv_kern_read_version;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

entry = create_proc_entry("registry", flags, proc_nvidia);
if (!entry)
goto failed;

entry->read_proc = nv_kern_read_registry;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */

return;

@@ -700,7 +700,7 @@

entry->data = (void *)message;
entry->read_proc = nv_kern_read_warning;
- entry->owner = THIS_MODULE;
+/* entry->owner = THIS_MODULE; */
#endif
}
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 01:53 PM.


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