Skip to contentSkip to conversation

2.4.19-pre3 s390 patch for warnings

PATCH Pete Zaitcev 1 participant 1 message Mar 15, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Dunno about others, but I do pay attention to warnings. Please consider.

Thanks,
-- Pete

arch/s390/kernel/setup.c +1 -1
diff -ur -X dontdiff linux-2.4.19-pre3/arch/s390/kernel/setup.c linux-2.4.19-pre3-390/arch/s390/kernel/setup.c
@@ -486,7 +486,7 @@
 static int show_cpuinfo(struct seq_file *m, void *v)
 {
         struct cpuinfo_S390 *cpuinfo;
-	unsigned long n = (unsigned long) v - 1;
+	int n = (int) v - 1;
 
 	if (!n) {
 		seq_printf(m, "vendor_id       : IBM/S390\n"
drivers/s390/block/dasd_diag.c +1 -1
diff -ur -X dontdiff linux-2.4.19-pre3/drivers/s390/block/dasd_diag.c linux-2.4.19-pre3-390/drivers/s390/block/dasd_diag.c
@@ -427,7 +427,7 @@
 	}
 	if (req->cmd == READ) {
 		rw_cmd = MDSK_READ_REQ;
-	} else if (req->cmd == WRITE) {
+	} else {
 		rw_cmd = MDSK_WRITE_REQ;
 	}
 	bhct = 0;