Guest User

patch-NVIDIA-Linux-x86-256.53

a guest
Sep 9th, 2011
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/conftest.sh NVIDIA-Linux-x86-256.53-patched/kernel/conftest.sh
  2. --- NVIDIA-Linux-x86-256.53/kernel/conftest.sh 2010-08-28 06:03:57.000000000 +0200
  3. +++ NVIDIA-Linux-x86-256.53-patched/kernel/conftest.sh 2011-09-09 14:51:38.701483693 +0200
  4. @@ -76,7 +76,7 @@
  5. }
  6.  
  7. build_cflags() {
  8. - BASE_CFLAGS="-D__KERNEL__ \
  9. + BASE_CFLAGS="-O2 -D__KERNEL__ \
  10. -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
  11. -nostdinc -isystem $ISYSTEM"
  12.  
  13. diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/nv.c NVIDIA-Linux-x86-256.53-patched/kernel/nv.c
  14. --- NVIDIA-Linux-x86-256.53/kernel/nv.c 2010-08-28 06:03:57.000000000 +0200
  15. +++ NVIDIA-Linux-x86-256.53-patched/kernel/nv.c 2011-09-09 14:47:56.176022549 +0200
  16. @@ -423,9 +423,10 @@
  17. static struct file_operations nv_fops = {
  18. .owner = THIS_MODULE,
  19. .poll = nv_kern_poll,
  20. - .ioctl = nv_kern_ioctl,
  21. #if defined(HAVE_UNLOCKED_IOCTL)
  22. .unlocked_ioctl = nv_kern_unlocked_ioctl,
  23. +#else
  24. + .ioctl = nv_kern_ioctl,
  25. #endif
  26. #if defined(NVCPU_X86_64) && defined(HAVE_COMPAT_IOCTL)
  27. .compat_ioctl = nv_kern_compat_ioctl,
  28. diff -u -r -N NVIDIA-Linux-x86-256.53/kernel/nv-linux.h NVIDIA-Linux-x86-256.53-patched/kernel/nv-linux.h
  29. --- NVIDIA-Linux-x86-256.53/kernel/nv-linux.h 2010-08-28 06:03:57.000000000 +0200
  30. +++ NVIDIA-Linux-x86-256.53-patched/kernel/nv-linux.h 2011-09-09 14:51:07.148321298 +0200
  31. @@ -32,7 +32,7 @@
  32. # define KERNEL_2_4
  33. #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
  34. # error This driver does not support 2.5 kernels!
  35. -#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
  36. +#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0)
  37. # define KERNEL_2_6
  38. #else
  39. # error This driver does not support development kernels!
  40. @@ -87,7 +87,6 @@
  41. #if !defined(KERNEL_2_4)
  42. #include <linux/sched.h> /* suser(), capable() replacement */
  43. #include <linux/moduleparam.h> /* module_param() */
  44. -#include <linux/smp_lock.h> /* kernel_locked */
  45. #include <asm/tlbflush.h> /* flush_tlb(), flush_tlb_all() */
  46. #include <asm/kmap_types.h> /* page table entry lookup */
  47. #endif
Advertisement
Add Comment
Please, Sign In to add comment