From 1a52f22256ea02b324107b83eeb5d36f0ac24ae6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 27 Aug 2014 06:33:02 +0000 Subject: [PATCH] scst_vdisk: Build fix for kernel 3.1.x git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5737 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 6cf088cfc..71d42d22c 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -7896,7 +7896,7 @@ static ssize_t vdev_sysfs_eui64_id_store(struct kobject *kobj, } write_lock(&vdisk_serial_rwlock); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) || \ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) || \ defined(CONFIG_SUSE_KERNEL) && \ LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 76) if (hex2bin(virt_dev->eui64_id, buf, count / 2) == 0) @@ -7977,7 +7977,7 @@ static ssize_t vdev_sysfs_naa_id_store(struct kobject *kobj, res = count; write_lock(&vdisk_serial_rwlock); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) || \ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) || \ defined(CONFIG_SUSE_KERNEL) && \ LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 76) if (hex2bin(virt_dev->naa_id, buf, c / 2) == 0)