From 5058156b261599beb141dab42b6deb4bc17ae87c Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 5 Nov 2015 04:03:20 +0000 Subject: [PATCH] Cleanups git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6572 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 1 - scst/src/scst_lib.c | 2 +- scst/src/scst_priv.h | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) 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);