patch-2.3.99-pre8 linux/drivers/block/raid0.c

Next file: linux/drivers/block/raid1.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre7/linux/drivers/block/raid0.c linux/drivers/block/raid0.c
@@ -41,7 +41,7 @@
 		printk("raid0: looking at %s\n", partition_name(rdev1->dev));
 		c = 0;
 		ITERATE_RDEV_ORDERED(mddev,rdev2,j2) {
-			printk("raid0:   comparing %s(%d) with %s(%d)\n", partition_name(rdev1->dev), rdev1->size, partition_name(rdev2->dev), rdev2->size);
+			printk("raid0:   comparing %s(%ld) with %s(%ld)\n", partition_name(rdev1->dev), rdev1->size, partition_name(rdev2->dev), rdev2->size);
 			if (rdev2 == rdev1) {
 				printk("raid0:   END\n");
 				break;
@@ -95,7 +95,7 @@
 				c++;
 				if (!smallest || (rdev->size <smallest->size)) {
 					smallest = rdev;
-					printk("  (%d) is smallest!.\n", rdev->size);
+					printk("  (%ld) is smallest!.\n", rdev->size);
 				}
 			} else
 				printk(" nope.\n");
@@ -326,13 +326,11 @@
 static mdk_personality_t raid0_personality=
 {
 	"raid0",
-	NULL,				/* no special map */
 	raid0_make_request,
 	NULL,				/* no special end_request */
 	raid0_run,
 	raid0_stop,
 	raid0_status,
-	NULL,				/* no ioctls */
 	0,
 	NULL,				/* no error_handler */
 	NULL,				/* no diskop */

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])