Fix bug preventing pass-through dev handlers be loaded if SCSI_EXEC_REQ_FIFO_DEFINED not defined.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-11-19 10:22:25 +00:00
parent 96e4adfb03
commit 4e65d67680

View File

@@ -1049,14 +1049,16 @@ int __scst_register_dev_driver(struct scst_dev_type *dev_type,
"supported. Consider applying on your kernel patch "
"scst_exec_req_fifo-<kernel-version> or define "
"CONFIG_SCST_STRICT_SERIALIZING", dev_type->name);
res = -EINVAL;
goto out_error;
#endif /* !defined(CONFIG_SCST_STRICT_SERIALIZING) */
#else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */
PRINT_ERROR("Pass-through dev handlers (handler \"%s\") not "
"supported. Consider applying on your kernel patch "
"scst_exec_req_fifo-<kernel-version>", dev_type->name);
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */
res = -EINVAL;
goto out_error;
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) */
}
#endif /* !defined(SCSI_EXEC_REQ_FIFO_DEFINED) */