diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 14d00009d..43b328fb9 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -465,7 +465,9 @@ EXPORT_SYMBOL(scst_cmd_init_done); int scst_pre_parse(struct scst_cmd *cmd) { int res; +#ifndef CONFIG_SCST_STRICT_SERIALIZING struct scst_device *dev = cmd->dev; +#endif struct scst_dev_type *devt = cmd->devt; int rc;