Skip to contentSkip to conversation

PATCH: linux-2.5.2-pre7/drivers/block/rd.c kdev_t fix

PATCH Adam J. Richter 1 participant 1 message Jan 4, 2002 Block layer

lore
Share & tools
lore
#0 lore raw

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.

Signature · 4 lines
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  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."
drivers/block/rd.c +1 -1
@@ -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