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

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Wed Dec 19 23:11:57 PST 2007


David B. Anderson wrote:
> I've all of these patches plus the following patch
> 
>    kernel_patches/backport/2.6.5_sles9_sp4/cxgb3_remove_eeh.patch
> 
> My current git repo is
> git://git.openfabrics.org/ofed_1_2/linux-2.6.git
> commit: 6974c285e6fb06264f570f9cf919865bab66c9e6
> 
> My patch that I posted before fixes the kernel configure script so that 
> it applies 2.6.5_sles9_sp4 patches for the SP4 release kernel of 
> 2.6.5-7.308 and above. The configure patch from 
> FED_1.2.5_sles9_sp4_configure.diff has 2.6.5-7.305* as the only valid 
> SP4 kernel which is incorrect. I get the same compiler error as before.
> 
> 
> 
> Moshe Kazir wrote:
>>  See patches in the attached message.
>>
>> It was applied by Vlad.
>>
>> Moshe
>>
>> ____________________________________________________________
>> Moshe Katzir   |  +972-9971-8639 (o)   |   +972-52-860-6042  (m)
>>  
>> Voltaire - The Grid Backbone
>>  
>>  www.voltaire.com
>>
>>  
>>
>> -----Original Message-----
>> From: general-bounces at lists.openfabrics.org
>> [mailto:general-bounces at lists.openfabrics.org] On Behalf Of David B.
>> Anderson
>> Sent: Saturday, December 15, 2007 3:31 AM
>> To: general at lists.openfabrics.org; vlad at mellanox.co.il
>> Subject: [ofa-general] [PATCH] LNXI Fixed ofed_scripts configure to
>> select sp4 patches for SLES9 kernel with minor versions equal or greater
>> than 305
>>
>>
>> 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/back
>> port/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/back
>> port/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/back
>> port/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/back
>> port/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/back
>> port/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/back
>> port/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/back
>> port/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/infiniban
>> d/core/addr.o] Error 1
>> make[5]: *** 
>> [/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniban
>> d/core] Error 2
>> make[4]: *** 
>> [/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniban
>> d] 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
>>
>>  
>> ------------------------------------------------------------------------
>>
>> Subject:
>> [ofa-general] OFED-1.2.5 backport patches for SLES9 SP4
>> From:
>> "Moshe Kazir" <moshek at voltaire.com>
>> Date:
>> Sun, 25 Nov 2007 09:59:26 +0200
>> To:
>> "Vladimir Sokolovsky" <vlad at mellanox.co.il>, 
>> <general at lists.openfabrics.org>
>>
>> To:
>> "Vladimir Sokolovsky" <vlad at mellanox.co.il>, 
>> <general at lists.openfabrics.org>
>>
>>
>> The attached files do the work.
>>
>> OFED_1.2.5_sles9_sp4_configure.diff  include the changes in the
>> configure file.
>> OFED_1.2.5_sles9_sp4_backport.diff  include the canges requiered in the
>> kernel_patche and kernel_addons directories.
>>
>> Moshe
>> ____________________________________________________________
>> Moshe Katzir   |  +972-9971-8639 (o)   |   +972-52-860-6042  (m)
>>  
>> Voltaire - The Grid Backbone
>>  
>>  www.voltaire.com
>>

Hi David,
Please try the latest OFED-1.2.5.4-20071219-0824.tgz build on your SLES9SP4.

http://www.openfabrics.org/builds/connectx/OFED-1.2.5.4-20071219-0824.tgz


Thanks,
Vladimir




More information about the general mailing list