mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
scst: Suppress a smatch warning in vdisk_unmap_range()
Avoid that the static source code analysis tool 'smatch' reports the following warning: vdisk_unmap_range() warn: should 'blocks << cmd->dev->block_shift' be a 64 bit type? Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5987 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3119,7 +3119,7 @@ static int vdisk_unmap_range(struct scst_cmd *cmd,
|
||||
#endif
|
||||
} else {
|
||||
loff_t off = start_lba << cmd->dev->block_shift;
|
||||
loff_t len = blocks << cmd->dev->block_shift;
|
||||
loff_t len = (u64)blocks << cmd->dev->block_shift;
|
||||
|
||||
res = vdisk_unmap_file_range(cmd, virt_dev, off, len, fd);
|
||||
if (unlikely(res != 0))
|
||||
|
||||
Reference in New Issue
Block a user