Acked-by: Brian King <brking@xxxxxxxxxxxxxxxxxx> On 06/09/2010 10:24 AM, Wayne Boyer wrote: > Compiling the driver will fail on 32 bit powerpc and other > architectures where writeq is not defined. This patch adds a > definition for writeq. > > Signed-off-by: Wayne Boyer <wayneb@xxxxxxxxxxxxxxxxxx> > --- > > drivers/scsi/ipr.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > Index: b/drivers/scsi/ipr.h > =================================================================== > --- a/drivers/scsi/ipr.h 2010-06-08 10:06:48.000000000 -0700 > +++ b/drivers/scsi/ipr.h 2010-06-08 15:14:42.000000000 -0700 > @@ -1860,4 +1860,12 @@ static inline int ipr_sdt_is_fmt2(u32 sd > return 0; > } > > +#ifndef writeq > +static inline void writeq(u64 val, void __iomem *addr) > +{ > + writel(((u32) (val >> 32)), addr); > + writel(((u32) (val)), (addr + 4)); > +} > #endif > + > +#endif /* _IPR_H */ > -- Brian King Linux on Power Virtualization IBM Linux Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html