Skip to contentSkip to conversation

aic94xx: Compile problem on s390

PATCH In review Konrad Rzeszutek 2 participants 3 messages Sep 18, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aic94xx: Compile problem on s390

The aic94xx driver in my-scsi and aic94xx James Bottomley tree does not compile on s390. Since the driver is generic, it makes sense to fix. The patch is quite simple:

include/scsi/libsas.h +1 -0
diff -uNr linux-2.6.17.noarch.orig/include/scsi/libsas.h linux-2.6.17.noarch/include/scsi/libsas.h
@@ -32,6 +32,7 @@
 #include <scsi/sas.h>
 #include <linux/list.h>
 #include <asm/semaphore.h>
+#include <asm/scatterlist.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_cmnd.h>
 #include <scsi/scsi_transport_sas.h>
Signature · 2 lines
Konrad Rzeszutek 1-(978)-392-3903 or 1-(617)-693-1718
IBM on-site partner.
#1 lore raw
Quoted 2 lines · Konrad Rzeszutek

The aic94xx driver in my-scsi and aic94xx James Bottomley tree does not compile on s390. Since the driver is generic, it makes sense to fix.

Erm, well, I don't think there's any s390s with PCI ;-)

Quoted 2 lines

The patch is quite simple:
+#include <asm/scatterlist.h>

Surely should be linux/scatterlist.h?

#2 lore raw
Quoted 10 lines · Matthew Wilcox
Quoted 2 lines · Konrad Rzeszutek

The aic94xx driver in my-scsi and aic94xx James Bottomley tree does not compile on s390. Since the driver is generic, it makes sense to fix.

Erm, well, I don't think there's any s390s with PCI ;-)

Quoted 2 lines

The patch is quite simple:
+#include <asm/scatterlist.h>

Surely should be linux/scatterlist.h?

Hm. Most of the drivers use the <asm/...> and that is where the struct scatterlist is defined. The linux/scatterlist.h includes the asm/scatterlist.h.

Either one works.

Signature · 2 lines
Konrad Rzeszutek 1-(978)-392-3903 or 1-(617)-693-1718
IBM on-site partner.