Messages in this thread Patch in this message | | | Date | Fri, 4 Jan 2002 00:03:25 -0800 | From | "Adam J. Richter" <> | Subject | PATCH: linux-2.5.2-pre7/drivers/block/rd.c kdev_t fix |
| |
The following patch fixes a kdev_t compilation problem in linux-2.5.2-pre7/drivers/block/rd.c. Note that I have not yet gotten 2.5.2-pre7 to fully build, so this patch is untested.
-- Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 adam@yggdrasil.com \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us." --- linux-2.5.2-pre7/drivers/block/rd.c Thu Jan 3 19:52:01 2002 +++ linux/drivers/block/rd.c Thu Jan 3 23:47:12 2002 @@ -453,7 +482,7 @@ #ifdef CONFIG_BLK_DEV_INITRD /* We ought to separate initrd operations here */ - register_disk(NULL, MKDEV(MAJOR_NR,INITRD_MINOR), 1, &rd_bd_op, rd_size<<1); + register_disk(NULL, mk_kdev(MAJOR_NR,INITRD_MINOR), 1, &rd_bd_op, rd_size<<1); devfs_register(devfs_handle, "initrd", DEVFS_FL_DEFAULT, MAJOR_NR, INITRD_MINOR, S_IFBLK | S_IRUSR, &rd_bd_op, NULL); #endif | |