From 3f464057e6d000ab8cd7eb828c36a87821e80b0d Mon Sep 17 00:00:00 2001 From: Fabio Scavone Date: Sat, 25 Mar 2023 13:34:31 +0100 Subject: [PATCH] added compatibility for linux kernel >= 6.2.x --- src/rc_init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rc_init.c b/src/rc_init.c index eeceae4..20af29e 100755 --- a/src/rc_init.c +++ b/src/rc_init.c @@ -341,7 +341,9 @@ static Scsi_Host_Template driver_template = { .module = THIS_MODULE, .name = RC_DRIVER_NAME, .proc_name = RC_DRIVER_NAME, +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0) .proc_dir = NULL, +#endif .info = rc_info, .ioctl = rc_ioctl, .queuecommand = rc_queue_cmd, @@ -792,7 +794,9 @@ rc_init_host(struct pci_dev *pdev) host_ptr->unique_id = 0; host_ptr->this_id = -1; /* SCSI Id for the adapter itself */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0) driver_template.present = 1; /* one virtual adapter */ +#endif error = scsi_add_host(host_ptr, &pdev->dev);