diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index ade936cab..1287a3769 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -8402,7 +8402,6 @@ static ssize_t vdev_size_store(struct kobject *kobj, char *new_size; int res = -ENOMEM; - new_size = kasprintf(GFP_KERNEL, "%d %.*s", size_shift, (int)count, buf); if (!new_size) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index c566f9b5d..9f7118c73 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -11984,7 +11984,7 @@ void scst_unblock_dev(struct scst_device *dev) { TRACE_ENTRY(); - TRACE_BLOCK("Device UNBLOCK(new %d), dev %s", + TRACE_BLOCK("Device UNBLOCK (new %d), dev %s", dev->block_count-1, dev->virt_name); if (--dev->block_count == 0) { diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index 198a5f4af..33056bd41 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -681,8 +681,8 @@ void scst_gen_aen_or_ua(struct scst_tgt_dev *tgt_dev, * we don't care about all commands that already on the device. */ -extern void scst_block_dev(struct scst_device *dev); -extern void scst_unblock_dev(struct scst_device *dev); +void scst_block_dev(struct scst_device *dev); +void scst_unblock_dev(struct scst_device *dev); bool __scst_check_blocked_dev(struct scst_cmd *cmd);