split kernel 4.7 compatibility patch into non-uvm and uvm parts
[packages/xorg-driver-video-nvidia.git] / linux-4.7-uvm.patch
1 --- a/kernel/nvidia-uvm/uvm_linux.h
2 +++ b/kernel/nvidia-uvm/uvm_linux.h
3 @@ -547,7 +547,11 @@
4      INIT_RADIX_TREE(tree, GFP_NOWAIT);
5  }
6  
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
8 +static bool radix_tree_is_empty(struct radix_tree_root *tree)
9 +#else
10  static bool radix_tree_empty(struct radix_tree_root *tree)
11 +#endif
12  {
13      void *dummy;
14      return radix_tree_gang_lookup(tree, &dummy, 0, 1) == 0;
15
This page took 0.059218 seconds and 3 git commands to generate.