srq->retries = 0;
#endif
req->timeout = timeout;
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
blk_execute_rq(req->q, NULL, req, 1);
+#else
+ blk_execute_rq(NULL, req, 1);
{
return single_open(file, tape_read_proc, NULL);
}
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
static struct file_operations tape_proc_ops = {
.owner = THIS_MODULE,
.open = tape_open_proc,
{
return single_open(file, changer_read_proc, NULL);
}
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
static struct file_operations changer_proc_ops = {
.owner = THIS_MODULE,
.open = changer_open_proc,
{
return single_open(file, status_read_proc, NULL);
}
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
static struct file_operations status_proc_ops = {
.owner = THIS_MODULE,
.open = status_open_proc,
rq->timeout = pfo_cmd->timeout;
rq->end_io_data = pfo_cmd;
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
blk_execute_rq(rq->q, NULL, rq, 1);
+#else
+ blk_execute_rq(NULL, rq, 1);