From patchwork Wed Nov 11 04:44:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 59258 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAB4j9gg023410 for ; Wed, 11 Nov 2009 04:45:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756839AbZKKEop (ORCPT ); Tue, 10 Nov 2009 23:44:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756751AbZKKEop (ORCPT ); Tue, 10 Nov 2009 23:44:45 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:39828 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756838AbZKKEoo convert rfc822-to-8bit (ORCPT ); Tue, 10 Nov 2009 23:44:44 -0500 Received: by bwz27 with SMTP id 27so697487bwz.21 for ; Tue, 10 Nov 2009 20:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=JtvgRCOCMXMIVkmnmpDOhg2o/cti8kabBmuVxznSM64=; b=vzA9wCX8aR0dyB5fH4wXq4gs4B2du0XYwIrsp0onhDaHm4jhGSMba3rBfg/nDfkdvq 7tu1Vc7LAdatozl3lfdC/ZdBnuobUTJSeWeZTKGjJfmDTKdND3AQNMjlgxZ1nlIo3YjC VkKy45ixVai/41TkCtvSljR+hoSAI6GtOMABY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=PUEPUhASluEQhbcN+8aUdF82v05vJWYs6oBMKAeU1wE4DPPeWvuZSV8Ab3OzNPv6w9 VvSdSygZkPIjbh04EHDmX/u41qoAgYs8PYJCg5rXKFbtITx/vu/npW/n1HRuyowKCcK6 fe1MsbRu4jhoE52ryqQi5CKJ0ul9TyrKSXHaA= MIME-Version: 1.0 Received: by 10.204.32.213 with SMTP id e21mr994941bkd.34.1257914689112; Tue, 10 Nov 2009 20:44:49 -0800 (PST) In-Reply-To: <1257863063.21596.765.camel@localhost> References: <1257236323.21596.56.camel@localhost> <1257237728.21596.65.camel@localhost> <1257863063.21596.765.camel@localhost> From: Vimal Singh Date: Wed, 11 Nov 2009 10:14:29 +0530 Message-ID: Subject: Re: [PATCH 1/3] Fixing compilation warning for 'nand/omap2.c' To: dedekind1@gmail.com Cc: Linux MTD , linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 090ab87..92573d5 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -501,11 +501,13 @@ static void omap_read_buf_dma_pref(struct static void omap_write_buf_dma_pref(struct mtd_info *mtd, const u_char *buf, int len) { + u_char *p = (u_char *)buf; + if (len <= mtd->oobsize) - omap_write_buf_pref(mtd, buf, len); + omap_write_buf_pref(mtd, p, len); else /* start transfer in DMA mode */ - omap_nand_dma_transfer(mtd, buf, len, 0x1); + omap_nand_dma_transfer(mtd, p, len, 0x1); } /**