Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755729Ab2F2NOB (ORCPT ); Fri, 29 Jun 2012 09:14:01 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:48460 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755429Ab2F2NN7 (ORCPT ); Fri, 29 Jun 2012 09:13:59 -0400 MIME-Version: 1.0 In-Reply-To: <1340975067.3070.180.camel@sauron.fi.intel.com> References: <1340834129-15545-1-git-send-email-stigge@antcom.de> <1340973434.3070.168.camel@sauron.fi.intel.com> <1340975067.3070.180.camel@sauron.fi.intel.com> Date: Fri, 29 Jun 2012 10:13:58 -0300 Message-ID: Subject: Re: [PATCH v10] MTD: LPC32xx MLC NAND driver From: Alexandre Pereira da Silva To: dedekind1@gmail.com Cc: Roland Stigge , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, dwmw2@infradead.org, kevin.wells@nxp.com, srinivas.bakki@nxp.com, linux-arm-kernel@lists.infradead.org, hechtb@googlemail.com, lars@metafoo.de, b32955@freescale.com, leiwen@marvell.com, linux@arm.linux.org.uk Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 20 On Fri, Jun 29, 2012 at 10:04 AM, Artem Bityutskiy wrote: > On Fri, 2012-06-29 at 09:56 -0300, Alexandre Pereira da Silva wrote: >> > @@ @@ >> > +drivers/mtd/nand/lpc32xx_mlc.c: In function 'lpc32xx_nand_probe': >> > +drivers/mtd/nand/lpc32xx_mlc.c:679:10: warning: variable 'sr' set but not used [-Wunused-but-set-variable] > > gcc 4.6, aiaiai uses W=1 when building. > >> > +drivers/mtd/nand/lpc32xx_mlc.c:561:24: error: bad constant expression [sparse] > > This is sparse, not gcc. Does the oob area need to be ecc protected? If not I suggest to just remove the read_oob and write_oob and let this to nand_base. I think this is too much overhead to read 6 bytes. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/