mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Remove "unused variable" warning on old kernels
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1322,8 +1322,8 @@ static void vdisk_exec_unmap(struct scst_cmd *cmd, struct scst_vdisk_thr *thr)
|
||||
(unsigned long long)start, len);
|
||||
|
||||
if (virt_dev->blockio) {
|
||||
gfp_t gfp = cmd->noio_mem_alloc ? GFP_NOIO : GFP_KERNEL;
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 27)
|
||||
gfp_t gfp = cmd->noio_mem_alloc ? GFP_NOIO : GFP_KERNEL;
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 31)
|
||||
err = blkdev_issue_discard(inode->i_bdev, start, len,
|
||||
gfp);
|
||||
|
||||
Reference in New Issue
Block a user