From patchwork Fri Oct 30 06:21:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 37250 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 5CC73B7C3F for ; Fri, 30 Oct 2009 17:23:09 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N3krc-00079J-Fd; Fri, 30 Oct 2009 06:21:32 +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 1N3krW-000763-FL for linux-mtd@lists.infradead.org; Fri, 30 Oct 2009 06:21:31 +0000 Received: by mail-bw0-f212.google.com with SMTP id 4so3543519bwz.2 for ; Thu, 29 Oct 2009 23:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=XPB2fGMl/zhJhQ+yAK/a9G9BG4zWb2amAtUT7mqgiyg=; b=pj7zrH2WlOA6GzFm8Fnae5fbguLV/GxT5GENsXRa0N3tuqTo6T5lPrXoCW61NY1m/q 9VBqPIU6Nm7OAf8pcwy0O0rtvUItaCrRk0ZcvOpcuMaZ9M1nUhNr1q8at95E3N/uN+2F Pe3Wa3Jb7anOGj5j19Y3ON2trtPyjXnJQCGk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=kX3xwIYinFAT/z504IUgwnvRgrbalrjyZmgogyBjWroszvXOIo5S1Wltg6/4F24nNt mC67yHFepjkjs7rFhk3MpagwwWakxNcfmwY/GPul4XcCCcjCt0pIaYnccRhzfjvBWRi4 O8o+zkcSNaW7F3EY1CLtY2kwnetjZJILg0JXw= MIME-Version: 1.0 Received: by 10.204.32.75 with SMTP id b11mr776829bkd.94.1256883686101; Thu, 29 Oct 2009 23:21:26 -0700 (PDT) From: Vimal Singh Date: Fri, 30 Oct 2009 11:51:06 +0530 Message-ID: Subject: [PATCH 1/3] Fixing compilation warning for 'nand/omap2.c' To: Linux MTD X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20091030_022126_631431_1C9998AC X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. 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_ 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 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 mtd_info *mtd, u_char *buf, int len) 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); }