[SCSI] mpt fusion: Fix sparse warnings
authorEric Moore <eric.moore@lsi.com>
Sat, 29 Sep 2007 16:16:28 +0000 (10:16 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:52:11 +0000 (14:52 -0400)
commitbc6e089a13a5c0ac36247616baecd6fc77405e7f
tree1550844191351e970b10c94379146f624e02f599
parente7eae9f6e94cd49261c2997b0b4f768c1351bc02
[SCSI] mpt fusion: Fix sparse warnings

List below is output from C=2 sparse compilation, which are fixed with
this patch.

1) mptspi: pg0 is defined in x86 version of include/asm/pgtable.h

2) mptsas: context imbalance in 'mptsas_probe' different lock contexts
   for basic block

3) mptbase: from mpt_attach - cast adds address space to expression

4) mptbase: from mpt_do_upload - request[] is bad constant expression

Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptbase.c
drivers/message/fusion/mptsas.c
drivers/message/fusion/mptspi.c