The scsi_transport_iscsi.c file included with 4.0.2 has
target_class, target_attrs, target_setup and
host_attrs, host_class, host_setup uses that don't
match the kernel.
With 2.6.11 the entries should be target_attrs.attrs,
target_attrs.class, target_attrs.match and
host_attrs.attrs, host_attrs.class, host_attrs.match.
This allows the modules to compile with no issues in 2.6.11
This patch file was generated by following the main
steps in the README for linux-iscsi-4.0.2 and then
editing the scsi_transport_iscsi.c file, then running
diff -Naur against that.
So once all the main steps are completed, just apply
this patch and it will compile and load on a 2.6.11 kernel.