File fix-411.diff of Package scsi_ep_front

Index: SD100_Card_Driver/scsi_ep_front/epfront_main.c
===================================================================
--- SD100_Card_Driver.orig/scsi_ep_front/epfront_main.c
+++ SD100_Card_Driver/scsi_ep_front/epfront_main.c
@@ -28,6 +28,11 @@
 #include <linux/kprobes.h>
 #include <asm/traps.h>
 
+#if (defined(__i386__) || defined(__x86_64__)) && LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
+#include <asm/cpufeatures.h>
+#define cpu_has_xmm4_2 boot_cpu_has(X86_FEATURE_XMM4_2)
+#endif
+
 #define EPFRONT_GET_DEVNAME_TIME_OUT (2 * HZ)
 #define EPFRONT_GET_DEVNAME_INTERVAL_MSEC (10)
 #define EPFRONT_PRI_RESET_BACK_INTERVAL_MSEC (10000)
@@ -2601,8 +2606,8 @@ static int epfront_slave_configure(struc
     if(use_cluster)
         blk_queue_max_segment_size(sdev->request_queue, 256 * 1024);
 
-	if(likely(q))
-		blk_queue_rq_timeout(q, (unsigned int)timeout);
+    if(likely(q))
+	blk_queue_rq_timeout(q, (unsigned int)timeout);
 
     return 0;
 }
@@ -5294,10 +5299,12 @@ static int __init epfront_init( void )
 	if(use_cluster)
             epfront_driver_template.use_clustering = ENABLE_CLUSTERING;
 	epfront_info("epfront_driver_template.use_clustering is %u", epfront_driver_template.use_clustering);
+#if (defined(__i386__) || defined(__x86_64__))
 	if (!cpu_has_xmm4_2){
 		epfront_err("cpu type error,cpu not support xmm4");
         goto errout;
-	}	
+	}
+#endif
 
 	set_bit(EPFRONT_SCSI_STOP, &epfront_status);
 	
Index: SD100_Card_Driver/scsi_ep_front/epfront_transfer.c
===================================================================
--- SD100_Card_Driver.orig/scsi_ep_front/epfront_transfer.c
+++ SD100_Card_Driver/scsi_ep_front/epfront_transfer.c
@@ -28,6 +28,10 @@
 #include <linux/pci.h>
 #include <linux/aer.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif
+
 #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32) && !defined(RHEL_RELEASE))
 /*****************************************************************************
 Function    : pcie_capability_read_word