Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/conftest.sh NVIDIA-Linux-x86-256.53-patched/kernel/conftest.sh
- --- NVIDIA-Linux-x86-256.53/kernel/conftest.sh 2010-08-28 06:03:57.000000000 +0200
- +++ NVIDIA-Linux-x86-256.53-patched/kernel/conftest.sh 2011-09-09 14:51:38.701483693 +0200
- @@ -76,7 +76,7 @@
- }
- build_cflags() {
- - BASE_CFLAGS="-D__KERNEL__ \
- + BASE_CFLAGS="-O2 -D__KERNEL__ \
- -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
- -nostdinc -isystem $ISYSTEM"
- diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/nv.c NVIDIA-Linux-x86-256.53-patched/kernel/nv.c
- --- NVIDIA-Linux-x86-256.53/kernel/nv.c 2010-08-28 06:03:57.000000000 +0200
- +++ NVIDIA-Linux-x86-256.53-patched/kernel/nv.c 2011-09-09 14:47:56.176022549 +0200
- @@ -423,9 +423,10 @@
- static struct file_operations nv_fops = {
- .owner = THIS_MODULE,
- .poll = nv_kern_poll,
- - .ioctl = nv_kern_ioctl,
- #if defined(HAVE_UNLOCKED_IOCTL)
- .unlocked_ioctl = nv_kern_unlocked_ioctl,
- +#else
- + .ioctl = nv_kern_ioctl,
- #endif
- #if defined(NVCPU_X86_64) && defined(HAVE_COMPAT_IOCTL)
- .compat_ioctl = nv_kern_compat_ioctl,
- diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/nv-linux.h NVIDIA-Linux-x86-256.53-patched/kernel/nv-linux.h
- --- NVIDIA-Linux-x86-256.53/kernel/nv-linux.h 2010-08-28 06:03:57.000000000 +0200
- +++ NVIDIA-Linux-x86-256.53-patched/kernel/nv-linux.h 2011-09-09 14:51:07.148321298 +0200
- @@ -32,7 +32,7 @@
- # define KERNEL_2_4
- #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
- # error This driver does not support 2.5 kernels!
- -#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
- +#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
- # define KERNEL_2_6
- #else
- # error This driver does not support development kernels!
- @@ -87,7 +87,6 @@
- #if !defined(KERNEL_2_4)
- #include <linux/sched.h> /* suser(), capable() replacement */
- #include <linux/moduleparam.h> /* module_param() */
- -#include <linux/smp_lock.h> /* kernel_locked */
- #include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
- #include <asm/kmap_types.h> /* page table entry lookup */
- #endif
Advertisement
Add Comment
Please, Sign In to add comment