stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dma: pl08x: fix descriptor unmapping
@ 2013-12-13 23:16 Linus Walleij
  2013-12-18 16:20 ` Vinod Koul
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2013-12-13 23:16 UTC (permalink / raw)
  To: Vinod Koul
  Cc: linux-kernel, Linus Walleij, stable, Dan Williams, Alban Bedel,
	Tomasz Figa

The descriptor unmapping code introduced in commit
d38a8c622a1b3 "dmaengine: prepare for generic 'unmap' data"
accidentally affects a local struct rather than the
async TX descriptor, resulting in this compile error:

  CC      drivers/dma/amba-pl08x.o
drivers/dma/amba-pl08x.c: In function ‘pl08x_desc_free’:
drivers/dma/amba-pl08x.c:1172:2: warning: passing argument 1 of
‘dma_descriptor_unmap’ from incompatible pointer type [enabled by default]
In file included from linux/include/linux/amba/pl08x.h:21:0,
                 from linux/drivers/dma/amba-pl08x.c:79:
linux/include/linux/dmaengine.h:476:20: note: expected
‘struct dma_async_tx_descriptor *’ but argument is of type ‘struct pl08x_txd *’

Cc: stable@vger.kernel.org
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Alban Bedel <alban.bedel@avionic-design.de>
Cc: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/dma/amba-pl08x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 16a2aa28f856..ec4ee5c1fe9d 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1169,7 +1169,7 @@ static void pl08x_desc_free(struct virt_dma_desc *vd)
 	struct pl08x_txd *txd = to_pl08x_txd(&vd->tx);
 	struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan);
 
-	dma_descriptor_unmap(txd);
+	dma_descriptor_unmap(&vd->tx);
 	if (!txd->done)
 		pl08x_release_mux(plchan);
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] dma: pl08x: fix descriptor unmapping
  2013-12-13 23:16 [PATCH 1/2] dma: pl08x: fix descriptor unmapping Linus Walleij
@ 2013-12-18 16:20 ` Vinod Koul
  2013-12-18 16:24   ` Vinod Koul
  0 siblings, 1 reply; 3+ messages in thread
From: Vinod Koul @ 2013-12-18 16:20 UTC (permalink / raw)
  To: Linus Walleij, Dan Williams
  Cc: linux-kernel, stable, Alban Bedel, Tomasz Figa

On Sat, Dec 14, 2013 at 12:16:07AM +0100, Linus Walleij wrote:
> The descriptor unmapping code introduced in commit
> d38a8c622a1b3 "dmaengine: prepare for generic 'unmap' data"
> accidentally affects a local struct rather than the
> async TX descriptor, resulting in this compile error:
> 
>   CC      drivers/dma/amba-pl08x.o
> drivers/dma/amba-pl08x.c: In function ‘pl08x_desc_free’:
> drivers/dma/amba-pl08x.c:1172:2: warning: passing argument 1 of
> ‘dma_descriptor_unmap’ from incompatible pointer type [enabled by default]
> In file included from linux/include/linux/amba/pl08x.h:21:0,
>                  from linux/drivers/dma/amba-pl08x.c:79:
> linux/include/linux/dmaengine.h:476:20: note: expected
> ‘struct dma_async_tx_descriptor *’ but argument is of type ‘struct pl08x_txd *’
> 
> Cc: stable@vger.kernel.org
I am going to apply this and send thru fixes. But I dont think stable tag is apt
here. IIRC d38a8c622a1b3 was merged in last merge window, so as long this gets
sent in current -rc's we should be fine

Dropping stable, pls do yell if you feel otherwise.

--
~Vinod
> Cc: Dan Williams <dan.j.williams@intel.com>
> Cc: Alban Bedel <alban.bedel@avionic-design.de>
> Cc: Tomasz Figa <tomasz.figa@gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/dma/amba-pl08x.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
> index 16a2aa28f856..ec4ee5c1fe9d 100644
> --- a/drivers/dma/amba-pl08x.c
> +++ b/drivers/dma/amba-pl08x.c
> @@ -1169,7 +1169,7 @@ static void pl08x_desc_free(struct virt_dma_desc *vd)
>  	struct pl08x_txd *txd = to_pl08x_txd(&vd->tx);
>  	struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan);
>  
> -	dma_descriptor_unmap(txd);
> +	dma_descriptor_unmap(&vd->tx);
>  	if (!txd->done)
>  		pl08x_release_mux(plchan);
>  
> -- 
> 1.8.3.1
> 

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] dma: pl08x: fix descriptor unmapping
  2013-12-18 16:20 ` Vinod Koul
@ 2013-12-18 16:24   ` Vinod Koul
  0 siblings, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2013-12-18 16:24 UTC (permalink / raw)
  To: Linus Walleij, Dan Williams
  Cc: linux-kernel, stable, Alban Bedel, Tomasz Figa

On Wed, Dec 18, 2013 at 09:50:36PM +0530, Vinod Koul wrote:
> On Sat, Dec 14, 2013 at 12:16:07AM +0100, Linus Walleij wrote:
> > The descriptor unmapping code introduced in commit
> > d38a8c622a1b3 "dmaengine: prepare for generic 'unmap' data"
> > accidentally affects a local struct rather than the
> > async TX descriptor, resulting in this compile error:
> > 
> >   CC      drivers/dma/amba-pl08x.o
> > drivers/dma/amba-pl08x.c: In function ‘pl08x_desc_free’:
> > drivers/dma/amba-pl08x.c:1172:2: warning: passing argument 1 of
> > ‘dma_descriptor_unmap’ from incompatible pointer type [enabled by default]
> > In file included from linux/include/linux/amba/pl08x.h:21:0,
> >                  from linux/drivers/dma/amba-pl08x.c:79:
> > linux/include/linux/dmaengine.h:476:20: note: expected
> > ‘struct dma_async_tx_descriptor *’ but argument is of type ‘struct pl08x_txd *’
> > 
> > Cc: stable@vger.kernel.org
> I am going to apply this and send thru fixes. But I dont think stable tag is apt
> here. IIRC d38a8c622a1b3 was merged in last merge window, so as long this gets
> sent in current -rc's we should be fine
And this was fixes by 89116bf9 - Fix pl08x warnings, and this is in Linus's
tree. So no action here!

--
~Vinod
> 
> Dropping stable, pls do yell if you feel otherwise.
> 
> --
> ~Vinod
> > Cc: Dan Williams <dan.j.williams@intel.com>
> > Cc: Alban Bedel <alban.bedel@avionic-design.de>
> > Cc: Tomasz Figa <tomasz.figa@gmail.com>
> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> > ---
> >  drivers/dma/amba-pl08x.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
> > index 16a2aa28f856..ec4ee5c1fe9d 100644
> > --- a/drivers/dma/amba-pl08x.c
> > +++ b/drivers/dma/amba-pl08x.c
> > @@ -1169,7 +1169,7 @@ static void pl08x_desc_free(struct virt_dma_desc *vd)
> >  	struct pl08x_txd *txd = to_pl08x_txd(&vd->tx);
> >  	struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan);
> >  
> > -	dma_descriptor_unmap(txd);
> > +	dma_descriptor_unmap(&vd->tx);
> >  	if (!txd->done)
> >  		pl08x_release_mux(plchan);
> >  
> > -- 
> > 1.8.3.1
> > 
> 
> -- 

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-18 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 23:16 [PATCH 1/2] dma: pl08x: fix descriptor unmapping Linus Walleij
2013-12-18 16:20 ` Vinod Koul
2013-12-18 16:24   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).