mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: franck.jullien@gmail.com
To: barebox@lists.infradead.org
Subject: [PATCH 4/5] [Nios2]: Fix compiler warning
Date: Sun, 15 May 2011 21:34:31 +0200	[thread overview]
Message-ID: <1305488072-1765-5-git-send-email-franck.jullien@gmail.com> (raw)
In-Reply-To: <1305488072-1765-1-git-send-email-franck.jullien@gmail.com>

From: Franck JULLIEN <franck.jullien@gmail.com>

Fix incompatible pointer type warning.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
---
 drivers/net/altera_tse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index d922a9a..ac8cd2d 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -526,7 +526,7 @@ static int tse_probe(struct device_d *dev)
 	tx_desc = (struct alt_sgdma_descriptor *)NIOS_SOPC_TSE_DESC_MEM_BASE;
 	rx_desc = tx_desc + 2;
 #else
-	tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), &dma_handle);
+	tx_desc = dma_alloc_coherent(sizeof(*tx_desc) * (3 + PKTBUFSRX), (unsigned long *)&dma_handle);
 	rx_desc = tx_desc + 2;
 
 	if (!tx_desc) {
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2011-05-15 19:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-15 19:34 [PATCH 0/5] [Nios2]: Differents fixes franck.jullien
2011-05-15 19:34 ` [PATCH 1/5] [Nios2]: Update generic env/config franck.jullien
2011-05-15 19:34 ` [PATCH 2/5] [Nios2]: Fix typo in generic.c franck.jullien
2011-05-15 19:34 ` [PATCH 3/5] [Nios2]: Change system frequency in generic board franck.jullien
2011-05-15 19:34 ` franck.jullien [this message]
2011-05-15 19:34 ` [PATCH 5/5] [Nios2]: Fix dma mapping end address franck.jullien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305488072-1765-5-git-send-email-franck.jullien@gmail.com \
    --to=franck.jullien@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox