Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 189557 Details for
Bug 267594
x11-drivers/nvidia-drivers-185.13-r1.ebuild: supports the 2.6.30-rc* kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 2.6.30-rc* kernels
for-2.6.30.patch (text/plain), 3.05 KB, created by
Kobboi
on 2009-04-26 20:26:29 UTC
(
hide
)
Description:
patch for 2.6.30-rc* kernels
Filename:
MIME Type:
Creator:
Kobboi
Created:
2009-04-26 20:26:29 UTC
Size:
3.05 KB
patch
obsolete
>--- nv.c 2009-03-24 17:19:10.000000000 +0300 >+++ nv.c 2009-04-16 18:32:25.187243389 +0400 >@@ -16,6 +16,7 @@ > #include "os-agp.h" > #include "nv-vm.h" > #include "nv-reg.h" >+#include <linux/version.h> > > #ifdef MODULE_ALIAS_CHARDEV_MAJOR > MODULE_ALIAS_CHARDEV_MAJOR(NV_MAJOR_DEVICE_NUMBER); >@@ -593,10 +594,11 @@ > * Set the module owner to ensure that the reference > * count reflects accesses to the proc files. > */ >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) > proc_nvidia->owner = THIS_MODULE; > proc_nvidia_cards->owner = THIS_MODULE; > proc_nvidia_warnings->owner = THIS_MODULE; >- >+#endif > for (j = 0; j < num_nv_devices; j++) > { > nvl = &nv_linux_devices[j]; >@@ -615,8 +617,9 @@ > > entry->data = nv; > entry->read_proc = nv_kern_read_cardinfo; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) > entry->owner = THIS_MODULE; >- >+#endif > if (nv_find_pci_capability(dev, PCI_CAP_ID_AGP)) > { > /* >@@ -628,8 +631,9 @@ > NV_PCI_DEV_PUT(dev); > goto failed; > } >- >- entry->owner = THIS_MODULE; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > proc_nvidia_agp = entry; > > entry = create_proc_entry("status", flags, proc_nvidia_agp); >@@ -640,8 +644,9 @@ > > entry->data = nv; > entry->read_proc = nv_kern_read_status; >- entry->owner = THIS_MODULE; >- >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp); > if (!entry) { > NV_PCI_DEV_PUT(dev); >@@ -650,7 +655,9 @@ > > entry->data = NULL; > entry->read_proc = nv_kern_read_agpinfo; >- entry->owner = THIS_MODULE; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > > entry = create_proc_entry("card", flags, proc_nvidia_agp); > if (!entry) { >@@ -660,7 +667,9 @@ > > entry->data = nv; > entry->read_proc = nv_kern_read_agpinfo; >- entry->owner = THIS_MODULE; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > } > > NV_PCI_DEV_PUT(dev); >@@ -671,14 +680,17 @@ > goto failed; > > entry->read_proc = nv_kern_read_version; >- entry->owner = THIS_MODULE; >- >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > entry = create_proc_entry("registry", flags, proc_nvidia); > if (!entry) > goto failed; > > entry->read_proc = nv_kern_read_registry; >- entry->owner = THIS_MODULE; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) >+ entry->owner = THIS_MODULE; >+#endif > > return; > >@@ -705,8 +717,10 @@ > > entry->data = (void *)message; > entry->read_proc = nv_kern_read_warning; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) > entry->owner = THIS_MODULE; > #endif >+#endif > } > > #ifdef CONFIG_PROC_FS >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 267594
:
189556
| 189557 |
189562