-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlinux-6.14.patch
More file actions
40 lines (38 loc) · 1.31 KB
/
linux-6.14.patch
File metadata and controls
40 lines (38 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/rc_init.c b/rc_init.c
index f57406d..d912eb3 100644
--- a/rc_init.c
+++ b/rc_init.c
@@ -174,7 +174,11 @@ void rc_timeout_done(unsigned long data);
#else
void rc_timeout_done(struct timer_list * t);
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
static int rc_slave_cfg(struct scsi_device *sdev);
+#else
+static int rc_slave_cfg(struct scsi_device *sdev, struct queue_limits *qlimits);
+#endif
int rc_bios_params(struct scsi_device *sdev, struct block_device *bdev,
sector_t capacity, int geom[]);
@@ -350,7 +354,11 @@ static Scsi_Host_Template driver_template = {
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)
.use_clustering = ENABLE_CLUSTERING,
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
.slave_configure = rc_slave_cfg,
+#else
+ .sdev_configure = rc_slave_cfg,
+#endif
.cmd_size = sizeof(rc_pcmd_t),
};
@@ -1951,7 +1959,11 @@ rc_bios_params (struct scsi_device *sdev,
* A queue depth of one automatically disables tagged queueing.
*/
static int
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
rc_slave_cfg(struct scsi_device *sdev)
+#else
+rc_slave_cfg(struct scsi_device *sdev, struct queue_limits *qlimits)
+#endif
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
if (sdev->tagged_supported)