Thread (3 messages) flat view 3 messages, 2 authors, 2012-07-31

Re: [PATCH] dma/fsldma: fix a compilation warnings

From: Kumar Gala <hidden>
Date: 2012-07-31 14:54:05

On Jul 31, 2012, at 9:48 AM, Liu Qiang-B32616 wrote:
Hi Kumar,
________________________________________
quoted
From: Linuxppc-dev =
[linuxppc-dev-bounces+qiang.liu=3Dfreescale.com@lists.ozlabs.org] on =
behalf of Kumar Gala [galak@kernel.crashing.org]
quoted
Sent: Tuesday, July 31, 2012 8:57 AM
To: dan.j.williams@intel.com
Cc: vinod.koul@intel.com; linuxppc-dev@ozlabs.org
Subject: [PATCH] dma/fsldma: fix a compilation warnings
=20
quoted
drivers/dma/fsldma.c: In function 'fsl_dma_tx_submit':
drivers/dma/fsldma.c:409:15: warning: 'cookie' may be used =
uninitialized in this function
quoted
=20
Signed-off-by: Kumar Gala <redacted>
---
drivers/dma/fsldma.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
=20
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 8f84761..6194eb7 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -406,7 +406,7 @@ static dma_cookie_t fsl_dma_tx_submit(struct =
dma_async_tx_descriptor *tx)
quoted
     struct fsl_desc_sw *desc =3D tx_to_fsl_desc(tx);
     struct fsl_desc_sw *child;
      unsigned long flags;
-       dma_cookie_t cookie;
+       dma_cookie_t cookie =3D 0;
I have already submitted a patch to fix it. Please refer to:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2012-July/099819.html
=20
Thanks.
Ah, good.. missed it ;)

- k=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help