The OFED commit made a.o. ib_srpt.c compile on 2.6.30 and later kernels.
Although the SCST ib_srpt.c code already compiles on a 2.6.30 kernel, this
commit has been ported to SCST because the source code of the OFED
implementation is cleaner. This commit does not change any functionality
of SCST's SRPT.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-09-19 16:40:01 +00:00
parent f048bf9956
commit 9381444e7d
+1 -3
View File
@@ -2740,9 +2740,7 @@ static void srpt_add_one(struct ib_device *device)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
snprintf(sdev->dev.bus_id, BUS_ID_SIZE, "srpt-%s", device->name);
#else
snprintf(sdev->init_name, sizeof(sdev->init_name),
"srpt-%s", device->name);
sdev->dev.init_name = sdev->init_name;
dev_set_name(&sdev->dev, "srpt-%s", device->name);
#endif
#endif