Skip to content

Commit 9c6234e

Browse files
Iouri Tarassovchessturo
authored andcommitted
drivers: hv: dxgkrnl: Fix build breaks when switching to 6.6 kernel due to hv_driver remove callback change.
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: 96ec293 "Drivers: hv: Make remove callback of hyperv driver void returned" Signed-off-by: Iouri Tarassov <iourit@linux.microsoft.com>
1 parent ccd9169 commit 9c6234e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/hv/dxgkrnl/dxgmodule.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,8 @@ static int dxg_probe_vmbus(struct hv_device *hdev,
803803
return ret;
804804
}
805805

806-
static int dxg_remove_vmbus(struct hv_device *hdev)
806+
static void dxg_remove_vmbus(struct hv_device *hdev)
807807
{
808-
int ret = 0;
809808
struct dxgvgpuchannel *vgpu_channel;
810809
struct dxgglobal *dxgglobal = dxggbl();
811810

@@ -830,12 +829,9 @@ static int dxg_remove_vmbus(struct hv_device *hdev)
830829
} else {
831830
/* Unknown device type */
832831
DXG_ERR("Unknown device type");
833-
ret = -ENODEV;
834832
}
835833

836834
mutex_unlock(&dxgglobal->device_mutex);
837-
838-
return ret;
839835
}
840836

841837
MODULE_DEVICE_TABLE(vmbus, dxg_vmbus_id_table);

0 commit comments

Comments
 (0)