lkml.org 
[lkml]   [2002]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: drivers/md compile fixes.
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);
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.048 / U:4.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site