Advertisement
Viterzgir

0009-kernel-5.17.patch

Mar 30th, 2022
1,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.24 KB | None | 0 0
  1. diff --speed-large-files --no-dereference --minimal -Naur NVIDIA-Linux-x86_64-340.108/kernel/conftest.sh NVIDIA-Linux-x86_64-340.108/kernel/conftest.sh
  2. --- NVIDIA-Linux-x86_64-340.108/kernel/conftest.sh  2022-02-15 09:57:50.223285183 +0100
  3. +++ NVIDIA-Linux-x86_64-340.108/kernel/conftest.sh  2022-02-15 09:46:22.109964261 +0100
  4. @@ -1619,7 +1619,11 @@
  5.              CODE="
  6.             #include <linux/proc_fs.h>
  7.             void conftest_PDE_DATA(void) {
  8. +            #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
  9. +                pde_data();
  10. +            #else
  11.                 PDE_DATA();
  12. +            #endif
  13.             }"
  14.  
  15.              compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
  16. diff --speed-large-files --no-dereference --minimal -Naur NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h
  17. --- NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h   2022-02-15 09:57:50.226618515 +0100
  18. +++ NVIDIA-Linux-x86_64-340.108/kernel/nv-linux.h   2022-02-15 09:51:06.976625786 +0100
  19. @@ -266,9 +266,9 @@
  20.  #endif
  21.  
  22.  #ifdef CONFIG_PROC_FS
  23. -#include <linux/proc_fs.h>
  24.  #include <linux/seq_file.h>
  25.  #endif
  26. +#include <linux/proc_fs.h>
  27.  
  28.  #ifdef CONFIG_KDB
  29.  #include <linux/kdb.h>
  30. @@ -2052,8 +2052,12 @@
  31.      })
  32.  
  33.  #if defined(NV_PDE_DATA_PRESENT)
  34. +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
  35.  # define NV_PDE_DATA(inode) PDE_DATA(inode)
  36.  #else
  37. +# define NV_PDE_DATA(inode) pde_data(inode)
  38. +#endif
  39. +#else
  40.  # define NV_PDE_DATA(inode) PDE(inode)->data
  41.  #endif
  42.  
  43. diff --speed-large-files --no-dereference --minimal -Naur NVIDIA-Linux-x86_64-340.108/kernel/uvm/conftest.sh NVIDIA-Linux-x86_64-340.108/kernel/uvm/conftest.sh
  44. --- NVIDIA-Linux-x86_64-340.108/kernel/uvm/conftest.sh  2019-12-11 23:04:24.000000000 +0100
  45. +++ NVIDIA-Linux-x86_64-340.108/kernel/uvm/conftest.sh  2022-02-15 09:55:01.226621573 +0100
  46. @@ -1574,7 +1574,11 @@
  47.              CODE="
  48.             #include <linux/proc_fs.h>
  49.             void conftest_PDE_DATA(void) {
  50. +            #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
  51. +                pde_data();
  52. +            #else
  53.                 PDE_DATA();
  54. +            #endif
  55.             }"
  56.  
  57.              compile_check_conftest "$CODE" "NV_PDE_DATA_PRESENT" "" "functions"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement