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
This commit is contained in:
Bart Van Assche
2014-08-27 06:33:02 +00:00
parent 5f14ef7a10
commit 1a52f22256

View File

@@ -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)