From patchwork Wed Jan 6 14:00:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 42293 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 B16E8B6EEF for ; Thu, 7 Jan 2010 01:02:39 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NSWRM-0008Ao-VD; Wed, 06 Jan 2010 14:00:48 +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 1NSWRG-0007x1-1g for linux-mtd@lists.infradead.org; Wed, 06 Jan 2010 14:00:46 +0000 Received: by bwz4 with SMTP id 4so10828757bwz.2 for ; Wed, 06 Jan 2010 06:00:41 -0800 (PST) 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:cc:content-type; bh=9XYIgesSylyif7KK+LVcDFT7LyVVEF6jvM3zXd7UbMM=; b=f2z2mZqknutjahE9S4pqzusB2+EtUfJFsb1kgVH5otF9WryDxIlYKLaOOD1V7+j0UC EK2CtLfa1EtM9TsAkcD8kyMOqI5qYlJcF2MmBt5lDZLoc7l1jkWo+CZo6drZwQb6yGiA cZTpHC8FW+NIRpDzAxXJwfKa+sGx1pSoa5vUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=QMglLO60d95lLM87/p7VVM/H8M35hRR4ESg+XFfiHmuRGfcdV13zXwQZOWMKcvF1Mg c0UZPB4/b9lfhma+BLkgDKnPNuFXh3HlcntTM0S43b6eIGSJgIGo7aV3ulbr4D8N9/XV jnXw9n3cLgQHk/fw8uqE9+c2XLjK01GtzfYUc= MIME-Version: 1.0 Received: by 10.204.11.6 with SMTP id r6mr978841bkr.29.1262786441292; Wed, 06 Jan 2010 06:00:41 -0800 (PST) From: Vimal Singh Date: Wed, 6 Jan 2010 19:30:21 +0530 Message-ID: Subject: [PATCH 1/3][NAND][OMAP]: 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-20100106_090042_201369_E54F6B81 X-CRM114-Status: GOOD ( 13.06 ) 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 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 3e856346f93afaf3f519dffe7987e4bbf56a136d Mon Sep 17 00:00:00 2001 From: Vimal Singh Date: Tue, 5 Jan 2010 12:49:24 +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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 1bb799f..4eea97c 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd, omap_write_buf_pref(mtd, buf, len); else /* start transfer in DMA mode */ - omap_nand_dma_transfer(mtd, buf, len, 0x1); + omap_nand_dma_transfer(mtd, (u_char *) buf, len, 0x1); } /**