linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] remove spare cast
       [not found] <200303070214.h272Ehp22067@hera.kernel.org>
@ 2003-03-07 11:03 ` Geert Uytterhoeven
  2003-03-07 12:33   ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2003-03-07 11:03 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Development

On Fri, 7 Mar 2003, Linux Kernel Mailing List wrote:
> ChangeSet 1.1068.10.40, 2003/03/06 17:44:05-08:00, alan@lxorguk.ukuu.org.uk
> 
> 	[PATCH] remove spare cast
> 
> 
> # This patch includes the following deltas:
> #	           ChangeSet	1.1068.10.39 -> 1.1068.10.40
> #	drivers/ide/ide-lib.c	1.6     -> 1.7    
> #
> 
>  ide-lib.c |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff -Nru a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c
> --- a/drivers/ide/ide-lib.c	Thu Mar  6 18:14:45 2003
> +++ b/drivers/ide/ide-lib.c	Thu Mar  6 18:14:45 2003
> @@ -171,7 +171,7 @@
>  		BUG();
>  	return min(speed, speed_max[mode]);
>  #else /* !CONFIG_BLK_DEV_IDEDMA */
> -	return min(speed, (u8)XFER_PIO_4);
> +	return min(speed, XFER_PIO_4);
>  #endif /* CONFIG_BLK_DEV_IDEDMA */

This reintroduces the following warning (with gcc-2.95.2 and gcc-3.2)

| drivers/ide/ide-lib.c:174: warning: comparison of distinct pointer types
| lacks a cast

which the cast was supposed to kill.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] remove spare cast
  2003-03-07 11:03 ` [PATCH] remove spare cast Geert Uytterhoeven
@ 2003-03-07 12:33   ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2003-03-07 12:33 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux Kernel Development

On Fri, 2003-03-07 at 11:03, Geert Uytterhoeven wrote:
> 
> This reintroduces the following warning (with gcc-2.95.2 and gcc-3.2)
> 
> | drivers/ide/ide-lib.c:174: warning: comparison of distinct pointer types
> | lacks a cast
> 
> which the cast was supposed to kill.

I know. Right now I don't care because I'm slowly turning all the u8 stuff
back into ints which is actually less code and faster on most processors.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-07 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200303070214.h272Ehp22067@hera.kernel.org>
2003-03-07 11:03 ` [PATCH] remove spare cast Geert Uytterhoeven
2003-03-07 12:33   ` Alan Cox

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).