On Tue, 25 Mar 2008, FUJITA Tomonori wrote: > Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> > Cc: Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> > Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> > --- > drivers/scsi/ps3rom.c | 7 ++----- > 1 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c > index d1e7845..ce48e2d 100644 > --- a/drivers/scsi/ps3rom.c > +++ b/drivers/scsi/ps3rom.c > @@ -26,6 +26,7 @@ > #include <scsi/scsi_dbg.h> > #include <scsi/scsi_device.h> > #include <scsi/scsi_host.h> > +#include <scsi/scsi_eh.h> > > #include <asm/lv1call.h> > #include <asm/ps3stor.h> > @@ -330,11 +331,7 @@ static irqreturn_t ps3rom_interrupt(int irq, void *data) > goto done; > } > > - cmd->sense_buffer[0] = 0x70; > - cmd->sense_buffer[2] = sense_key; > - cmd->sense_buffer[7] = 16 - 6; > - cmd->sense_buffer[12] = asc; > - cmd->sense_buffer[13] = ascq; > + scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); > cmd->result = SAM_STAT_CHECK_CONDITION; > > done: > -- > 1.5.3.7 With kind regards, Geert Uytterhoeven Software Architect Sony Network and Software Technology Center Europe The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: Geert.Uytterhoeven@xxxxxxxxxxx Internet: http://www.sony-europe.com/ Sony Network and Software Technology Center Europe A division of Sony Service Centre (Europe) N.V. Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium VAT BE 0413.825.160 · RPR Brussels Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619