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

2013-08-02 Thread Mark Brown
On Thu, Aug 01, 2013 at 04:08:57PM -0600, Stephen Warren wrote: > From: Stephen Warren > > 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.

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

2013-08-01 Thread Stephen Warren
From: Stephen Warren 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: drivers/spi/spi-gpio.c: In function 'spi_gpio_probe': drivers