From 05f29dd54251295f4ce2ad0418df1bfb6afe9014 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 26 Jan 2012 04:58:36 +0000 Subject: [PATCH] Fix compilation for SuSe 2.6.32.46 kernel git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4099 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index 155f83cda..5c64ba99f 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -143,7 +143,7 @@ static int qla2xxx_eh_target_reset(struct scsi_cmnd *); static int qla2xxx_eh_bus_reset(struct scsi_cmnd *); static int qla2xxx_eh_host_reset(struct scsi_cmnd *); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) && !defined(CONFIG_SUSE_KERNEL) static int qla2x00_change_queue_depth(struct scsi_device *, int); #else static int qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, @@ -1195,7 +1195,7 @@ qla2xxx_slave_destroy(struct scsi_device *sdev) sdev->hostdata = NULL; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) && !defined(CONFIG_SUSE_KERNEL) static int qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth) @@ -1257,7 +1257,7 @@ qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) return sdev->queue_depth; } -#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) */ +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) && !defined(CONFIG_SUSE_KERNEL) */ static int qla2x00_change_queue_type(struct scsi_device *sdev, int tag_type)