[ofa-general] OFED-1.4: ofa-kernel modules do not compile on 2.6.26 under Debian Lenny

Dr. Volker Jaenisch volker.jaenisch at inqbus.de
Wed Feb 18 02:47:04 PST 2009


Hello Ofa-List!

Compiling the ofa-kernel modules from OFED-1.4 on Debian Lenny Kernel 
2.6.26 (on amd64) gives
me the following trace:

[..]
/usr/bin/make -f scripts/Makefile.build 
obj=/usr/src/modules/ofa-kernel-source/drivers/scsi
gcc-4.1 
-Wp,-MD,/usr/src/modules/ofa-kernel-source/drivers/scsi/.scsi_transport_iscsi.o.d 
-nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include 
-D__KERNEL__ \
-include include/linux/autoconf.h \
-include /usr/src/modules/ofa-kernel-source/include/linux/autoconf.h \
-I/usr/src/modules/ofa-kernel-source/kernel_addons/backport/2.6.26/include/ 
\
\
\
-I/usr/src/modules/ofa-kernel-source/include \
-I/usr/src/modules/ofa-kernel-source/drivers/infiniband/debug \
-I/usr/local/include/scst \
-I/usr/src/modules/ofa-kernel-source/drivers/infiniband/ulp/srpt \
-I/usr/src/modules/ofa-kernel-source/drivers/net/cxgb3 \
-Iinclude \
\
-I/usr/src/linux-headers-2.6.26-1-amd64/arch/x86_64/include \
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
-fno-common -Werror-implicit-function-declaration -Os 
-fno-stack-protector -m64 -mtune=generic -mno-red-zone -mcmodel=kernel 
-funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare 
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 
-Iinclude/asm-x86/mach-default -fomit-frame-pointer -g 
-Wdeclaration-after-statement -Wno-pointer-sign -DMODULE 
-D"KBUILD_STR(s)=#s" 
-D"KBUILD_BASENAME=KBUILD_STR(scsi_transport_iscsi)" 
-D"KBUILD_MODNAME=KBUILD_STR(scsi_transport_iscsi)" -c -o 
/usr/src/modules/ofa-kernel-source/drivers/scsi/.tmp_scsi_transport_iscsi.o 
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c: 
In function ‘iscsi_create_endpoint’:
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c:174: 
warning: passing argument 3 of ‘class_find_device’ from incompatible 
pointer type
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c:174: 
error: too many arguments to function ‘class_find_device’
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c: 
In function ‘iscsi_lookup_endpoint’:
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c:226: 
warning: passing argument 3 of ‘class_find_device’ from incompatible 
pointer type
/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.c:226: 
error: too many arguments to function ‘class_find_device’
make[5]: *** 
[/usr/src/modules/ofa-kernel-source/drivers/scsi/scsi_transport_iscsi.o] 
Fehler 1
make[4]: *** [/usr/src/modules/ofa-kernel-source/drivers/scsi] Fehler 2
make[3]: *** [_module_/usr/src/modules/ofa-kernel-source] Fehler 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.26-1-amd64'
make[2]: *** [kernel] Fehler 2
make[2]: Leaving directory `/usr/src/modules/ofa-kernel-source'
make[1]: *** [binary-modules] Fehler 2
make[1]: Leaving directory `/usr/src/modules/ofa-kernel-source'
make: *** [kdist_build] Fehler 2

The code is backported correctly to 2.6.26

[..]
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} 
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.26-1-amd64/g ;s/#KVERS#/2.6.26-1-amd64/g ; 
s/_KVERS_/2.6.26-1-amd64/g ; s/##KDREV##/2.6.26-13/g ; s/#KDREV#/2.6.2
6-13/g ; s/_KDREV_/2.6.26-13/g ' < $templ > ${templ%.modules.in}; \
done
./ofed_scripts/ofed_patch.sh --kernel-version=2.6.26
mkdir -p /usr/src/modules/ofa-kernel-source/patches
[..]

At google I found this thread 
http://groups.google.com/group/open-iscsi/browse_thread/thread/9bdb0cf059c1b3d3
that describes a similiar problem. But in that case there are too few 
parameter not to many.

The complete trace you may find at 
http://www.inqbus-hosting.de/ofa-kernel-source.buildlog.2.6.26-1-amd64.1234948099

Any help welcome

Volker Jaenisch

-- 
====================================================
   inqbus it-consulting      +49 ( 341 )  5643800
   Dr.  Volker Jaenisch      http://www.inqbus.de
   Herloßsohnstr.    12      0 4 1 5 5    Leipzig
   N  O  T -  F Ä L L E      +49 ( 170 )  3113748
====================================================




More information about the general mailing list