aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2009-04-14 16:08:34 +0000
committerLinus Torvalds <[email protected]>2009-04-14 16:58:17 +0000
commit2344b5b6851466511663154e517f8b31f70c4bb6 (patch)
treed603582628b9df9d5ae0d89ba286d44759162831 /fs/proc/array.c
parenttty: Update some of the USB kernel doc (diff)
downloadkernel-2344b5b6851466511663154e517f8b31f70c4bb6.tar.gz
kernel-2344b5b6851466511663154e517f8b31f70c4bb6.zip
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions