--=_courier-18672-1057881247-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
There's a warning in drivers/ide/ide-lib.c for comparing pointers of
different types. This just casts one of the arguments to u8 to shut up
the compiler.
Cheers!
-Matt
--=_courier-18672-1057881247-0001-2
Content-Type: text/plain; name="ide_lib-warning.patch"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ide_lib-warning.patch"
diff -Nurp --exclude-from=/home/mcd/.dontdiff linux-2.5.74-vanilla/drivers/ide/ide-lib.c linux-2.5.74-warnings/drivers/ide/ide-lib.c
--- linux-2.5.74-vanilla/drivers/ide/ide-lib.c Wed Jul 2 13:57:08 2003
+++ linux-2.5.74-warnings/drivers/ide/ide-lib.c Thu Jul 10 14:44:12 2003
@@ -170,7 +170,7 @@ u8 ide_rate_filter (u8 mode, u8 speed)
BUG();
return min(speed, speed_max[mode]);
#else /* !CONFIG_BLK_DEV_IDEDMA */
- return min(speed, XFER_PIO_4);
+ return min(speed, (u8)XFER_PIO_4);
#endif /* CONFIG_BLK_DEV_IDEDMA */
}
--=_courier-18672-1057881247-0001-2--