VirtualBox

Changeset 80735 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 11, 2019 2:35:34 PM (5 years ago)
Author:
vboxsync
Message:

linux kernel 5.3 fixes: tickref:18911, contribution from Larry.Finger at lwfinger.net

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r79643 r80735  
    21242124    if (in_dev != NULL)
    21252125    {
    2126         for_ifa(in_dev) {
     2126        struct in_ifaddr *ifa;
     2127
     2128        for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) {
    21272129            if (VBOX_IPV4_IS_LOOPBACK(ifa->ifa_address))
    21282130                return NOTIFY_OK;
     
    21382140            pThis->pSwitchPort->pfnNotifyHostAddress(pThis->pSwitchPort,
    21392141                /* :fAdded */ true, kIntNetAddrType_IPv4, &ifa->ifa_address);
    2140         } endfor_ifa(in_dev);
     2142        }
    21412143    }
    21422144
  • trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c

    r76553 r80735  
    284284    {
    285285        /* Fire the function on all other CPUs without waiting for completion. */
    286 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     286# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
     287        smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait */);
     288# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    287289        int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait */);
     290        Assert(!rc); NOREF(rc);
    288291# else
    289292        int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* retry */, 0 /* wait */);
    290 # endif
    291293        Assert(!rc); NOREF(rc);
     294# endif
    292295    }
    293296#endif
     
    327330#ifdef CONFIG_SMP
    328331    IPRT_LINUX_SAVE_EFL_AC();
    329     int rc;
    330332    RTMPARGS Args;
    331333
     
    338340
    339341    RTThreadPreemptDisable(&PreemptState);
    340 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    341     rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
     342# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
     343    smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
     344# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
     345    int rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */);
     346    Assert(rc == 0); NOREF(rc);
    342347# else /* older kernels */
    343     rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
     348    int rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */);
     349    Assert(rc == 0); NOREF(rc);
    344350# endif /* older kernels */
    345351    RTThreadPreemptRestore(&PreemptState);
    346352
    347     Assert(rc == 0); NOREF(rc);
    348353    IPRT_LINUX_RESTORE_EFL_AC();
    349354#else
Note: See TracChangeset for help on using the changeset viewer.

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