Re: drivers/md compile fixes.

From: Gertjan van Wingerde (gwingerde@home.nl)
Date: Sun Jan 06 2002 - 08:10:10 EST


Okay,

It seems that I f**ked up the patch creation. Actually only the first
chunk of the patch is correct. New version of the patch attached.

         Best regards/MvG,

                 Gertjan.

Gertjan van Wingerde wrote:

> Hi,
>
> The attached patch to 2.5.2-pre9 is necessary to get it to compile and
> to clean up some NODEV vs. mk_kdev(0, 0) usages.
>
>

-- 
	MvG,

Gertjan

----------

Gertjan van Wingerde Geessinkweg 177 7544 TX Enschede The Netherlands E-mail: gwingerde@home.nl

diff -u --recursive linux-2.5.2-pre8/drivers/md/md.c linux-2.5.x/drivers/md/md.c --- linux-2.5.2-pre8/drivers/md/md.c Sun Jan 6 11:28:53 2002 +++ linux-2.5.x/drivers/md/md.c Sun Jan 6 11:30:03 2002 @@ -641,7 +641,7 @@ int err = 0; struct block_device *bdev; - bdev = bdget(rdev->dev); + bdev = bdget(kdev_t_to_nr(rdev->dev)); if (!bdev) return -ENOMEM; err = blkdev_get(bdev, FMODE_READ|FMODE_WRITE, 0, BDEV_RAW);

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:30 EST