From 63961f14aabbc1dddc19a2b77fd9a59c0bf2c9a4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 2 May 2015 11:37:19 +0200 Subject: [PATCH] scst_vdisk: Fix proc build See also "Merge T10-PI branch back" (commit ID 906f4dfefb2e). Signed-off-by: Bart Van Assche --- scst/src/dev_handlers/scst_vdisk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index d6a8632f2..6ba491139 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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"