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: 37493 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1E5271007D2 for ; Tue, 3 Nov 2009 20:03:26 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N5FH9-0004u7-Vq; Tue, 03 Nov 2009 09:02:03 +0000 Received: from mail-bw0-f212.google.com ([209.85.218.212]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N5FH2-0004tI-EN for linux-mtd@lists.infradead.org; Tue, 03 Nov 2009 09:02:01 +0000 Received: by bwz4 with SMTP id 4so7647568bwz.2 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 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20091103_040156_891061_0CBF81C8 X-CRM114-Status: GOOD ( 11.97 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- _SUMMARY_ Cc: linux-omap@vger.kernel.org, Linux MTD X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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 >> mtd_info *mtd, u_char > > :-) It is the same again. > > Try to send the e-mail to yourself, then save it and apply with git-am. > If it works, send to the mailing list. Below patch applies. Sorry for noise... :( Thanks, vimal From eebbd81141b196af2dc3f7a2650ce16b6b0d76ae Mon Sep 17 00:00:00 2001 From: Vimal Singh Date: Fri, 30 Oct 2009 11:31:34 +0530 Subject: [PATCH] Fixing compilation warning for 'nand/omap2.c' Fixing below warning in compilation: drivers/mtd/nand/omap2.c: In function 'omap_write_buf_dma_pref': drivers/mtd/nand/omap2.c:508: warning: passing argument 2 of 'omap_nand_dma_transfer' discards qualifiers from pointer target type Signed-off-by: Vimal Singh --- drivers/mtd/nand/omap2.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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); } /**