Re: 2.4.10-pre5/pre6

From: Garst R. Reese (reese@isn.net)
Date: Sun Sep 09 2001 - 00:30:50 EST


aar:/lib/modules/2.4.10-pre6#
Pre5 problems cured but,
dhinds pcmcia-cs-3.1.29 gives:
 depmod -ae
depmod: *** Unresolved symbols in
/lib/modules/2.4.10-pre6/kernel/drivers/scsi/sd_mod.o
depmod: del_gendisk
depmod: add_gendisk

This patch is still needed for pre6
Peter Osterlund wrote:

> This patch seems to work:
>
> --- linux/drivers/block/rd.c.orig Sat Sep 8 11:58:19 2001
> +++ linux/drivers/block/rd.c Sat Sep 8 12:21:50 2001
> @@ -259,7 +259,7 @@
> /* special: we want to release the ramdisk memory,
> it's not like with the other blockdevices where
> this ioctl only flushes away the buffer cache. */
> - if ((atomic_read(rd_bdev[minor]->bd_openers) > 2))
> + if ((atomic_read(&rd_bdev[minor]->bd_openers) > 2))
> return -EBUSY;
> destroy_buffers(inode->i_rdev);
> rd_blocksizes[minor] = 0;
> @@ -372,7 +372,7 @@
> struct block_device *bdev = rd_bdev[i];
> rd_bdev[i] = NULL;
> if (bdev) {
> - blkdev_put(bdev);
> + blkdev_put(bdev, BDEV_FILE);
> bdput(bdev);
> }
> destroy_buffers(MKDEV(MAJOR_NR, i));
>
> --
> Peter Österlund petero2@telia.com
> Sköndalsvägen 35 http://w1.894.telia.com/~u89404340
> S-128 66 Sköndal +46 8 942647
> Sweden
-
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 : Sat Sep 15 2001 - 21:00:17 EST