scst_vdisk: Fix proc build

See also "Merge T10-PI branch back" (commit ID 906f4dfefb).

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-05-04 07:11:21 +02:00
parent 018df6aeca
commit 63961f14aa
+2
View File
@@ -1567,6 +1567,7 @@ next:
PRINT_WARNING("Device %s: static app tag is ignored for DIF "
"mode 2", dev->virt_name);
#ifndef CONFIG_SCST_PROC
if (virt_dev->dif_filename != NULL) {
res = scst_create_dev_attr(dev, &vdev_dif_filename_attr);
if (res != 0) {
@@ -1576,6 +1577,7 @@ next:
goto out;
}
}
#endif
if (virt_dev->zero_copy && virt_dev->o_direct_flag) {
PRINT_ERROR("%s: combining zero_copy with o_direct is not"