From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 19 Nov 2013 18:13:34 -0600 Subject: [U-Boot] [PATCH v10 2/4] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform In-Reply-To: <1384781582-31773-3-git-send-email-pekon@ti.com> References: <1384781582-31773-1-git-send-email-pekon@ti.com> <1384781582-31773-3-git-send-email-pekon@ti.com> Message-ID: <1384906414.1403.406.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2013-11-18 at 19:03 +0530, Pekon Gupta wrote: > @@ -763,77 +903,47 @@ static void __maybe_unused omap_free_bch(struct mtd_info *mtd) > * @eccstrength - the number of bits that could be corrected > * (1 - hamming, 4 - BCH4, 8 - BCH8, 16 - BCH16) > */ > -void omap_nand_switch_ecc(uint32_t hardware, uint32_t eccstrength) > +int __maybe_unused omap_nand_switch_ecc(uint32_t hardware, uint32_t eccstrength) > { > struct nand_chip *nand; > struct mtd_info *mtd; > + struct nand_bch_priv *bch; > + int err = 0; bch gives unused warning I tried to see if the warning goes away later, but patch 3/4 doesn't apply cleanly. What tree is this patchset against? -Scott