VirtualBox

Ticket #16872: Fix_opensuse_wait_queue_entry_backported_patch.patch

File Fix_opensuse_wait_queue_entry_backported_patch.patch, 867 bytes (added by Dmitri Chubarov, 6 years ago)

Fix_opensuse_wait_queue_entry_backported_patch

  • r0drv/linux/waitqueue-r0drv-linux.h

    old new  
    3939 *  schedule_hrtimeout_range. */
    4040#define RTR0SEMLNXWAIT_RESOLUTION   50000
    4141
     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
    4249
    4350/**
    4451 * Kernel mode Linux wait state structure.
     
    4653typedef struct RTR0SEMLNXWAIT
    4754{
    4855    /** The wait queue entry. */
    49 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0)
     56#if WAIT_QUEUE_NOMENCLATURE >= KERNEL_VERSION(4,13,0)
    5057    wait_queue_entry_t WaitQE;
    5158#else
    5259    wait_queue_t    WaitQE;

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy