Skip to contentSkip to conversation

mvsas: correct bit map usage

PATCH In review Andy Yan 2 participants 2 messages May 11, 2009 – May 14, 2009 SCSI

lore
Share & tools
lore

Andy Yan

author
#0 lore raw

PATCH 4/5 mvsas: correct bit map usage

Quoted 1 line

From dc94fa636af60eaebc9aaeb80c1b78b52edeea57 Mon Sep 17 00:00:00 2001

From: Andy Yan <[email protected]>
Date: Mon, 11 May 2009 21:56:31 +0800
Subject: [PATCH 4/5] mvsas: correct bit map usage

Utilize DECLARE_BITMAP to define the tags array.

---
 drivers/scsi/mvsas/mv_sas.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/scsi/mvsas/mv_sas.h +1 -2
index 75b9748..93735ed 100644
@@ -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];
Signature · 1 line
1.6.2.1
Acked-by on v1 4/5
#1 lore raw
Quoted 10 lines · Andy Yan
Quoted 1 line

From dc94fa636af60eaebc9aaeb80c1b78b52edeea57 Mon Sep 17 00:00:00 2001

From: Andy Yan <[email protected]>
Date: Mon, 11 May 2009 21:56:31 +0800
Subject: [PATCH 4/5] mvsas: correct bit map usage

Utilize DECLARE_BITMAP to define the tags array.