summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas
diff options
context:
space:
mode:
authorAndy Yan <ayan@marvell.com>2009-05-11 15:56:31 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-05-23 22:44:08 +0200
commit77db27cdcbc8ed371fd2f154cbadc7ff32ae8901 (patch)
tree9353f6b1c123d50a71d8be81517cbd5e4a0d5436 /drivers/scsi/mvsas
parent[SCSI] mvsas: bug fix, null pointer may be used (diff)
downloadlinux-77db27cdcbc8ed371fd2f154cbadc7ff32ae8901.tar.xz
linux-77db27cdcbc8ed371fd2f154cbadc7ff32ae8901.zip
[SCSI] mvsas: correct bit map usage
Utilize DECLARE_BITMAP to define the tags array. Signed-off-by: Ying Chu <jasonchu@marvell.com> Signed-off-by: Andy Yan <ayan@marvell.com> Signed-off-by: Ke Wei <kewei@marvell.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/mvsas')
-rw-r--r--drivers/scsi/mvsas/mv_sas.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h
index 75b9748ae7cc..93735edff507 100644
--- a/drivers/scsi/mvsas/mv_sas.h
+++ b/drivers/scsi/mvsas/mv_sas.h
@@ -313,8 +313,7 @@ struct mvs_info {
const struct mvs_chip_info *chip;
int tags_num;
- u8 tags[MVS_SLOTS >> 3];
-
+ DECLARE_BITMAP(tags, MVS_SLOTS);
/* further per-slot information */
struct mvs_phy phy[MVS_MAX_PHYS];
struct mvs_port port[MVS_MAX_PHYS];