• Thomas Haller's avatar
    device: fix casting pointer to enum for sriov_reset_on_deactivate_cb() · 3d274594
    Thomas Haller authored
    Avoids a compiler warning:
    
        ../src/devices/nm-device.c:16079:26: error: cast to smaller integer type 'NMDeviceStateReason' from 'gpointer' (aka 'void *') [-Werror,-Wvoid-pointer-to-enum-cast]
                deactivate_ready (self, (NMDeviceStateReason) reason);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Fixes: 121c58f0 ('core: set number of SR-IOV VFs asynchronously')
    (cherry picked from commit 918ebd60)
    (cherry picked from commit 32641b9f)
    (cherry picked from commit c24888be)
    3d274594
nm-device.c 598 KB