From 53caeeaa9d589dfc41d47a9ddc1f3c0d2cbfc3e4 Mon Sep 17 00:00:00 2001 From: piernov Date: Mon, 17 Jun 2024 22:09:31 +0200 Subject: [PATCH] oscdriver: Fix for linux 6.9.0 --- src/oscdriver/oscdriver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/oscdriver/oscdriver.c b/src/oscdriver/oscdriver.c index 8a586cd..3530344 100644 --- a/src/oscdriver/oscdriver.c +++ b/src/oscdriver/oscdriver.c @@ -1531,7 +1531,11 @@ static long process_ioctl(struct file *f, const unsigned cmd, const unsigned lon } // configure queue +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 9, 0) data_queue = blk_mq_init_queue(&data_device.tag_set); +#else + data_queue = blk_mq_alloc_queue(&data_device.tag_set, NULL, NULL); +#endif if (IS_ERR(data_queue)) { printk(KERN_WARNING "oscdriver: Failed to allocate queue\n");