Re: [patch] alpha compile warnings cleanup

From: Richard Henderson (rth@twiddle.net)
Date: Fri Jul 07 2000 - 00:18:08 EST


On Thu, Jul 06, 2000 at 11:37:41PM +0400, Ivan Kokshaysky wrote:
> The only arch independent fix is in serial.c.
> Perhaps it reveals GCC 64-bit bug:
> long = int << 32
> produces not only warning: shift count >= width of type
> but incorrect code.
> long = (long)int << 32
> works fine though.

No, this is just the way C works -- int = int << int.

> -typedef long __kernel_loff_t;
> +typedef long long __kernel_loff_t;

Incorrect. This just means someone forgot to use loff_t
instead of hardcoding long long.

r~

-
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 : Fri Jul 07 2000 - 21:00:20 EST