]> git.pld-linux.org Git - packages/xorg-driver-video-nvidia-legacy-304xx.git/blob - linux-3.11.patch
0f02fa8280708bf8b47c8809be7a12696df5e9b8
[packages/xorg-driver-video-nvidia-legacy-304xx.git] / linux-3.11.patch
1 Description: fix module build for kernel 3.11
2 Author: Milos_SD
3 Origin: other, https://devtalk.nvidia.com/default/topic/549532/linux/linux-3-10-solved-3-11-solved-incompatibility-in-function-lsquo-nv_i2c_del_adapter-rsquo-error/2/
4
5 --- a/kernel/nv-linux.h
6 +++ b/kernel/nv-linux.h
7 @@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus
8  #endif
9  
10  #if !defined(NV_VMWARE)
11 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)
12 +#define NV_NUM_PHYSPAGES                get_num_physpages()
13 +#else
14  #define NV_NUM_PHYSPAGES                num_physpages
15 +#endif
16  #define NV_GET_CURRENT_PROCESS()        current->tgid
17  #define NV_IN_ATOMIC()                  in_atomic()
18  #define NV_LOCAL_BH_DISABLE()           local_bh_disable()
This page took 0.032686 seconds and 2 git commands to generate.