Re: [PATCH] spi: fix SPI_BIT_MASK so it always fits into 32-bits

From: Mark Brown
Date: Fri Aug 02 2013 - 06:32:04 EST


On Thu, Aug 01, 2013 at 04:08:57PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@xxxxxxxxxx>
>
> On a 64-bit platform, ~0UL fills 64-bits, which causes SPI_BIT_MASK(32)
> not to fit into 32 bits. This causes a warning when the result is assigned
> to a 32-bit variable. Use ~0U instead to prevent this. This fixes:

Applied, thanks.

Attachment: signature.asc
Description: Digital signature