[PATCH 2.3.x] IDE probe fix

From: Geert Uytterhoeven (geert@linux-m68k.org)
Date: Fri Feb 18 2000 - 02:48:25 EST


This patch fixes a compile problem on m68k, where ide_ioreg_t is typedef'd as
`unsigned char *'.

As per the ANSI/ISO C standard, the difference between two variables of the
same type is always of an integer type.

--- native-2.3.47-pre3/drivers/block/ide-probe.c Thu Feb 17 20:22:56 2000
+++ /tmp/ide-probe.c Fri Feb 18 08:45:43 2000
@@ -406,7 +406,7 @@
         ide_ioreg_t ide_control_reg = hwif->io_ports[IDE_CONTROL_OFFSET];
         ide_ioreg_t region_low = hwif->io_ports[IDE_DATA_OFFSET];
         ide_ioreg_t region_high = region_low;
- ide_ioreg_t region_request = 8;
+ unsigned int region_request = 8;
         int i;
 
         if (hwif->noprobe)

Gr{oetje,eeting}s,

--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:20 EST