2.4.19-pre3 s390 patch for warnings

Pete Zaitcev (zaitcev@redhat.com)
Fri, 15 Mar 2002 13:33:46 -0500


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

Thanks,
-- Pete

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
--- linux-2.4.19-pre3/arch/s390/kernel/setup.c Tue Mar 12 10:53:36 2002
+++ linux-2.4.19-pre3-390/arch/s390/kernel/setup.c Fri Mar 15 09:12:47 2002
@@ -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"
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
--- linux-2.4.19-pre3/drivers/s390/block/dasd_diag.c Sun Sep 30 12:26:07 2001
+++ linux-2.4.19-pre3-390/drivers/s390/block/dasd_diag.c Fri Mar 15 08:39:17 2002
@@ -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;
-
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/