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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com ([143.182.124.37]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VALMB-00044T-VS for linux-mtd@lists.infradead.org; Fri, 16 Aug 2013 14:50:28 +0000 Message-ID: <1376664938.2089.384.camel@sauron.fi.intel.com> Subject: Re: [patch] mtd: nand: silence some shift wrap warnings From: Artem Bityutskiy To: Dan Carpenter Date: Fri, 16 Aug 2013 17:55:38 +0300 In-Reply-To: <20130809094904.GC29282@elgon.mountain> References: <20130809094904.GC29282@elgon.mountain> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: kernel-janitors@vger.kernel.org, Matthieu CASTET , Huang Shijie , linux-mtd@lists.infradead.org, Brian Norris , David Woodhouse Reply-To: artem.bityutskiy@linux.intel.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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