From patchwork Tue Nov 3 09:01:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 57235 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 nA392cdF019637 for ; Tue, 3 Nov 2009 09:02:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756034AbZKCJBw (ORCPT ); Tue, 3 Nov 2009 04:01:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755967AbZKCJBv (ORCPT ); Tue, 3 Nov 2009 04:01:51 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:56467 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756034AbZKCJBv (ORCPT ); Tue, 3 Nov 2009 04:01:51 -0500 Received: by bwz27 with SMTP id 27so7299818bwz.21 for ; Tue, 03 Nov 2009 01:01:55 -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; bh=/kFSXXg4ZKNpqahzdVF8sjo/cmAAahklmeWsWeHlPFU=; b=JR7UbWCy0/WWhCi7HzTNiuJtZSXuKm7VlNzOS8BArbtbDH0daN2IfFq7nujpMkOWEp 9LFAsX4wBOshdbWhd8OK5AR2xQMQAwy0PpHLEa3zXa6/LkNcZs4yi9INQ45RQnY+Dqzl NKM9AbyKp1gKXMEnMDOBVvwQrfn6gX+Z9x7ek= 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; b=tOi96kvJpl8MWolo/nyYuKXNLyQznaZy53JPxVjARLNmz1eVxJwXfKsTYS+qVxC5pz mTMDVu1w9OkZ1tbJFDNMXEXAFyrpvgtgvVSCvBv9q7mYVju54rD4FK4cuB0PyLsoI0Fz 9HrCJ3gU4aiI2DzHPaGMb3YNtMMXA3NBBeBHc= MIME-Version: 1.0 Received: by 10.204.151.210 with SMTP id d18mr3739944bkw.203.1257238915090; Tue, 03 Nov 2009 01:01:55 -0800 (PST) In-Reply-To: <1257237728.21596.65.camel@localhost> References: <1257236323.21596.56.camel@localhost> <1257237728.21596.65.camel@localhost> From: Vimal Singh Date: Tue, 3 Nov 2009 14:31:35 +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); } /**