[ofa-general] [PATCH] LNXI Fixed ofed_scripts configure to select sp4 patches for SLES9 kernel with minor versions equal or greater than 305

David B. Anderson danderson at lnxi.com
Fri Dec 14 17:31:06 PST 2007


Hi,

I've created the following patch for OFED 1.2.5.4 to have the kernel for 
SLES9 SP4 recognized (2.6.5-7.308).

Even with the patch I then had two back port patches not apply cleanly 
(cxg3_to_2_6_20.patch, rds_to_2_6_9.patch). I hand patched them but now 
I'm getting the following compiler errors:

In file included from /usr/src/linux-2.6.5-7.308/include/linux/module.h:10,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/module.h:4,
                 from /usr/src/linux-2.6.5-7.308/include/linux/device.h:21,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/device.h:4,
                 from 
/usr/src/linux-2.6.5-7.308/include/linux/netdevice.h:38,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/netdevice.h:4,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c:32:
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/sched.h:8: 
warning: static declaration for `wait_for_completion_timeout' follows 
non-static
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c:67: 
warning: initialization from incompatible pointer type
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c: 
In function `addr_resolve_remote':
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c:192: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c:193: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c:197: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.c: 
At top level:
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/device.h:48: 
warning: `class_create' defined but not used
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/device.h:82: 
warning: `class_destroy' defined but not used
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/backport/2.6.5_sles9_sp4/include/linux/device.h:108: 
warning: `class_device_create' defined but not used
make[6]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core/addr.o] 
Error 1
make[5]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband/core] 
Error 2
make[4]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband] 
Error 2
make[3]: *** 
[_module_/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.5-7.308-obj/x86_64/default'
make: *** [kernel] Error 2

Does anyone have OFED 1.2.5.4 building for SLES 9 SP4?

Thanks

-- 
David B. Anderson 
Linux Networx
Sr. Software Engineer
Email: danderson at lnxi.com
Phone: (801) 649-1311

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LNXI-Fixed-ofed_scripts-configure-to-select-sp4-patc.patch
Type: text/x-patch
Size: 993 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071214/8104fb46/attachment.bin>


More information about the general mailing list