From: Iouri Tarassov <[email protected]> The hv_driver remove callback has been updated to return void instead of int. dxg_remove_vmbus() in dxgmodule.c needs to be updated to match. See this commit for more context: 96ec2939620c "Drivers: hv: Make remove callback of hyperv driver void returned"
Signed-off-by: Iouri Tarassov <[email protected]> --- drivers/hv/dxgkrnl/dxgmodule.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/hv/dxgkrnl/dxgmodule.c b/drivers/hv/dxgkrnl/dxgmodule.c index 0fafb6167229..5459bd9b82fb 100644 --- a/drivers/hv/dxgkrnl/dxgmodule.c +++ b/drivers/hv/dxgkrnl/dxgmodule.c @@ -803,9 +803,8 @@ static int dxg_probe_vmbus(struct hv_device *hdev, return ret; } -static int dxg_remove_vmbus(struct hv_device *hdev) +static void dxg_remove_vmbus(struct hv_device *hdev) { - int ret = 0; struct dxgvgpuchannel *vgpu_channel; struct dxgglobal *dxgglobal = dxggbl(); @@ -830,12 +829,9 @@ static int dxg_remove_vmbus(struct hv_device *hdev) } else { /* Unknown device type */ DXG_ERR("Unknown device type"); - ret = -ENODEV; } mutex_unlock(&dxgglobal->device_mutex); - - return ret; } MODULE_DEVICE_TABLE(vmbus, dxg_vmbus_id_table);

