lkml.org 
[lkml]   [2013]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] spi: fix SPI_BIT_MASK so it always fits into 32-bits
On Thu, Aug 01, 2013 at 04:08:57PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> 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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-08-02 13:01    [W:0.025 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site