mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user