Re: aic7xxx driver large integer warning

From: Alan Cox
Date: Tue Dec 07 2004 - 09:03:27 EST


On Llu, 2004-12-06 at 17:30, Miguel Angel Flores wrote:
> Sure, but the 39 bit variable is only used when the type of dma_addr_t
> is u64. I think that is more clean to put this assignement inside the if
> block, like the rest of the CONFIG_HIGHMEM64G code. Anyway the
> (dma_addr_t) cast can be added too.
>
> Âhow you would solve this?

I'd just add the cast. The compiler will truncate it to FFFFFFFF if
appropriate.


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