[PATCH] raid5: fix build error, sector_t usage

From: Randy Dunlap
Date: Thu Apr 21 2011 - 12:07:52 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Change <sectors> from unsigned long long to sector_t.
This matches its source field.

ERROR: "__udivdi3" [drivers/md/raid456.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
drivers/md/raid5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20110421.orig/drivers/md/raid5.c
+++ linux-next-20110421/drivers/md/raid5.c
@@ -5678,7 +5678,7 @@ static void raid5_quiesce(mddev_t *mddev
static void *raid45_takeover_raid0(mddev_t *mddev, int level)
{
struct raid0_private_data *raid0_priv = mddev->private;
- unsigned long long sectors;
+ sector_t sectors;

/* for raid0 takeover only one zone is supported */
if (raid0_priv->nr_strip_zones > 1) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/