|
From: <bva...@us...> - 2019-06-16 21:07:25
|
Revision: 8426
http://sourceforge.net/p/scst/svn/8426
Author: bvassche
Date: 2019-06-16 21:07:17 +0000 (Sun, 16 Jun 2019)
Log Message:
-----------
scst: Fix build against Linux kernel v5.2
Reported-by: Sebastian Herbszt <he...@gm...>
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2019-06-16 20:53:37 UTC (rev 8425)
+++ trunk/scst/src/scst_targ.c 2019-06-16 21:07:17 UTC (rev 8426)
@@ -6773,7 +6773,11 @@
static int scst_reset_scsi_target(struct scsi_device *sdev)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0)
+ /* To do: implement this functionality. */
+ WARN_ON_ONCE(true);
+ return FAILED;
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
int arg = SG_SCSI_RESET_TARGET;
return scsi_ioctl_reset(sdev, (__force __user int *)&arg);
@@ -6786,7 +6790,11 @@
static int scst_reset_scsi_device(struct scsi_device *sdev)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0)
+ /* To do: implement this functionality. */
+ WARN_ON_ONCE(true);
+ return FAILED;
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
int arg = SG_SCSI_RESET_DEVICE;
return scsi_ioctl_reset(sdev, (__force __user int *)&arg);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|