* [PATCH] lpfc: fix 8.3.1 for do_div warning [Bug 13022]
@ 2009-04-07 18:03 James Smart
0 siblings, 0 replies; only message in thread
From: James Smart @ 2009-04-07 18:03 UTC (permalink / raw)
To: linux-scsi
Correct do_div warning reported by:
[Bug 13022] New: comparison of distinct pointer types lacks a cast
http://marc.info/?l=linux-scsi&m=123900867611315&w=2
To be applied on top of lpfc 8.3.1 patch set.
-- james s
Signed-off-by: James Smart <james.smart@emulex.com>
---
lpfc_scsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
--- a/drivers/scsi/lpfc/lpfc_scsi.c 2009-04-06 18:34:51.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_scsi.c 2009-04-07 13:56:27.000000000 -0400
@@ -1393,7 +1393,7 @@ lpfc_parse_bg_err(struct lpfc_hba *phba,
*/
cmd->sense_buffer[8] = 0; /* Information */
cmd->sense_buffer[9] = 0xa; /* Add. length */
- do_div(bghm, cmd->device->sector_size);
+ bghm /= cmd->device->sector_size;
failing_sector = scsi_get_lba(cmd);
failing_sector += bghm;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-07 18:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 18:03 [PATCH] lpfc: fix 8.3.1 for do_div warning [Bug 13022] James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox