[PATCH 49/55] drivers: hv: dxgkrnl: Fix build breaks when switching to 6.6 kernel due to hv_driver remove callback change.
From: Eric Curtin
Date: Thu Mar 19 2026 - 16:35:24 EST
From: Iouri Tarassov <iourit@xxxxxxxxxxxxxxxxxxx>
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 <iourit@xxxxxxxxxxxxxxxxxxx>
---
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);