From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Date: Fri, 16 Aug 2013 14:55:38 +0000 Subject: Re: [patch] mtd: nand: silence some shift wrap warnings Message-Id: <1376664938.2089.384.camel@sauron.fi.intel.com> List-Id: References: <20130809094904.GC29282@elgon.mountain> In-Reply-To: <20130809094904.GC29282@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: kernel-janitors@vger.kernel.org, Matthieu CASTET , Huang Shijie , linux-mtd@lists.infradead.org, Brian Norris , David Woodhouse On Fri, 2013-08-09 at 12:49 +0300, Dan Carpenter wrote: > There are static checkers which complain when we declare variables as > 64 bit bitfields but only use the lower 32 bits because of shift > wrapping. In this case "len" is declared as u64 as opposed to unsigned > long or something which might be 32 bits. > > Signed-off-by: Dan Carpenter Pushed to l2-mtd.git, thanks! -- Best Regards, Artem Bityutskiy