linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [trivial][patch] no more warnings [2/3] pointer comparison in ide-lib.c
@ 2003-07-10 23:45 Matthew Dobson
  0 siblings, 0 replies; only message in thread
From: Matthew Dobson @ 2003-07-10 23:45 UTC (permalink / raw)
  To: Trivial Patch Monkey, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

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

[-- Attachment #2: ide_lib-warning.patch --]
[-- Type: text/plain, Size: 533 bytes --]

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 */
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-10 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-10 23:45 [trivial][patch] no more warnings [2/3] pointer comparison in ide-lib.c Matthew Dobson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).