From: Stephen Warren Date: Thu, 1 Aug 2013 22:08:57 +0000 (-0600) Subject: spi: fix SPI_BIT_MASK so it always fits into 32-bits X-Git-Tag: v3.12-rc1~192^2~33^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6aa23ccaea1548cfb404b41129717f13443bccf;p=pandora-kernel.git spi: fix SPI_BIT_MASK so it always fits into 32-bits 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/spi/spi-gpio.c:446:2: warning: large integer implicitly truncated to unsigned type [-Woverflow] Reported-by: kbuild test robot Signed-off-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed