From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] MTD: Suppress warnings in inline_map_read() From: David Woodhouse To: Kevin Cernekee In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Sat, 10 Apr 2010 10:26:22 +0100 Message-ID: <1270891582.4704.102.camel@macbook.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2010-04-09 at 15:45 -0700, Kevin Cernekee wrote: > With gcc 4.4.3 -O2 on MIPS32: > > drivers/mtd/chips/cfi_util.c: In function 'cfi_qry_present': > include/linux/mtd/map.h:390: warning: 'r' may be used uninitialized in this function > include/linux/mtd/map.h:375: note: 'r' was declared here > include/linux/mtd/map.h:390: warning: 'r' may be used uninitialized in this function > include/linux/mtd/map.h:375: note: 'r' was declared here > > Signed-off-by: Kevin Cernekee I suspect 'else BUG()' would be a better fix. -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation