summarylogtreecommitdiffstats
path: root/kernel5.9up.patch
diff options
context:
space:
mode:
authorJán Kosterec2020-10-28 15:01:15 +0100
committerJán Kosterec2020-10-28 15:01:15 +0100
commit6c88085d2b7d615be11a476e40ad7faa0aa245c3 (patch)
tree60be5c753b45e996bd51dbbe4d8d2dbf6d604412 /kernel5.9up.patch
parent5c9b0d2c2bce3bd0dde49d0e85607791e099c75e (diff)
downloadaur-6c88085d2b7d615be11a476e40ad7faa0aa245c3.tar.gz
Update to 7.0.1 and patch for kernel 5.9 and 5.10
Diffstat (limited to 'kernel5.9up.patch')
-rw-r--r--kernel5.9up.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/kernel5.9up.patch b/kernel5.9up.patch
new file mode 100644
index 000000000000..e9cc8f3b8923
--- /dev/null
+++ b/kernel5.9up.patch
@@ -0,0 +1,37 @@
+--- a/module/rapiddisk.c 2020-10-28 13:46:38.672851445 +0100
++++ b/module/rapiddisk.c 2020-10-28 13:28:30.000000000 +0100
+@@ -477,7 +477,11 @@
+ #else
+ static int
+ #endif
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
++rdsk_submit_bio(struct bio *bio)
++#else
+ rdsk_make_request(struct request_queue *q, struct bio *bio)
++#endif
+ {
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
+ struct rdsk_device *rdsk = bio->bi_disk->private_data;
+@@ -665,6 +669,9 @@
+ static const struct block_device_operations rdsk_fops = {
+ .owner = THIS_MODULE,
+ .ioctl = rdsk_ioctl,
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
++ .submit_bio = rdsk_submit_bio,
++#endif
+ };
+
+ static int attach_device(int size)
+@@ -707,7 +714,11 @@
+ spin_lock_init(&rdsk->rdsk_lock);
+ INIT_RADIX_TREE(&rdsk->rdsk_pages, GFP_ATOMIC);
+
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
++ rdsk->rdsk_queue = blk_alloc_queue(NUMA_NO_NODE);
++ if (!rdsk->rdsk_queue)
++ goto out_free_dev;
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)
+ rdsk->rdsk_queue = blk_alloc_queue(rdsk_make_request, NUMA_NO_NODE);
+ if (!rdsk->rdsk_queue)
+ goto out_free_dev;