Re: [PATCH] spi/pl022: Explicitly truncate large bitmask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 1, 2014 at 6:48 PM, Mark Brown <broonie@xxxxxxxxxx> wrote:

> From: Mark Brown <broonie@xxxxxxxxxx>
>
> When building on 64 bit architectures the use of bitwise negation generates
> constants larger than 32 bits which won't fit in u32s used to represent
> 32 bit register values on the device. Explicitly cast to let the compiler
> know that the higher bits are not significant and can be discarded.
>
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux