linux/drivers/scsi/lpfc
David Howells 2344b5b685 Fix lpfc_parse_bg_err()'s use of do_div()
Fix lpfc_parse_bg_err()'s use of do_div().  It should be passing a 64-bit
variable as the first parameter.  However, since it's only using a 32-bit
variable, it doesn't need to use do_div() at all, but can instead use the
division operator.

This deals with the following warnings:

    CC      drivers/scsi/lpfc/lpfc_scsi.o
  drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_parse_bg_err':
  drivers/scsi/lpfc/lpfc_scsi.c:1397: warning: comparison of distinct pointer types lacks a cast
  drivers/scsi/lpfc/lpfc_scsi.c:1397: warning: right shift count >= width of type
  drivers/scsi/lpfc/lpfc_scsi.c:1397: warning: passing argument 1 of '__div64_32' from incompatible pointer type

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-14 09:58:17 -07:00
..
lpfc_attr.c [SCSI] lpfc : correct printk types on PPC compiles 2008-12-29 11:24:34 -06:00
lpfc_compat.h
lpfc_crtn.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_ct.c [SCSI] lpfc 8.3.0 : Fix multiple NPIV issues 2008-12-29 11:24:26 -06:00
lpfc_debugfs.c [SCSI] lpfc: constify virtual function tables 2009-03-12 12:57:56 -05:00
lpfc_debugfs.h [SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig 2008-12-29 11:24:28 -06:00
lpfc_disc.h [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc_els.c [SCSI] lpfc: introduce missing kfree 2009-02-10 11:15:19 -05:00
lpfc_hbadisc.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
lpfc_hw.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_init.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
lpfc_logmsg.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_mbox.c [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) code 2008-12-29 11:24:28 -06:00
lpfc_mem.c [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc_nl.h [SCSI] lpfc 8.3.0 : Added 3 small features and improve PCI EEH support 2008-12-29 11:24:26 -06:00
lpfc_nportdisc.c [SCSI] lpfc 8.3.0 : Fix several minor issues 2008-12-29 11:24:26 -06:00
lpfc_scsi.c Fix lpfc_parse_bg_err()'s use of do_div() 2009-04-14 09:58:17 -07:00
lpfc_scsi.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) code 2008-12-29 11:24:28 -06:00
lpfc_sli.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
lpfc_sli.h [SCSI] lpfc 8.2.8 : Add new FCOE hardware support 2008-10-13 09:28:54 -04:00
lpfc_version.h [SCSI] lpfc 8.3.0 : Update driver version to 8.3.0 2008-12-29 11:24:28 -06:00
lpfc_vport.c [SCSI] lpfc 8.3.0 : Fix multiple NPIV issues 2008-12-29 11:24:26 -06:00
lpfc_vport.h [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc.h [SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig 2008-12-29 11:24:28 -06:00
Makefile [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00