Ticket #16872: Fix_opensuse_wait_queue_entry_backported_patch.patch
| File Fix_opensuse_wait_queue_entry_backported_patch.patch, 867 bytes (added by , 6 years ago) |
|---|
-
r0drv/linux/waitqueue-r0drv-linux.h
old new 39 39 * schedule_hrtimeout_range. */ 40 40 #define RTR0SEMLNXWAIT_RESOLUTION 50000 41 41 42 /* openSUSE Leap 15.0 detection */ 43 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) \ 44 && defined(CONFIG_SUSE_KERNEL) 45 # define WAIT_QUEUE_NOMENCLATURE KERNEL_VERSION(4, 13, 0) /* no typo! */ 46 #else 47 # define WAIT_QUEUE_NOMENCLATURE LINUX_VERSION_CODE 48 #endif 42 49 43 50 /** 44 51 * Kernel mode Linux wait state structure. … … 46 53 typedef struct RTR0SEMLNXWAIT 47 54 { 48 55 /** The wait queue entry. */ 49 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13,0)56 #if WAIT_QUEUE_NOMENCLATURE >= KERNEL_VERSION(4,13,0) 50 57 wait_queue_entry_t WaitQE; 51 58 #else 52 59 wait_queue_t WaitQE;

