Skip to contentSkip to conversation

dmaengine: at_hdmac: remove unused function

PATCH In review Olof Johansson 4 participants 4 messages Nov 26, 2013 – Nov 28, 2013 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: at_hdmac: remove unused function

commit 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in the at_hdmac driver:

drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]

Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')
Cc Bartlomiej Zolnierkiewicz <[email protected]>

---

Dan,

Looks like you fixed up the DesignWare driver for the same issue but this needs it to.

 drivers/dma/at_hdmac_regs.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/dma/at_hdmac_regs.h +0 -4
index f31d647acdfa..2787aba60c6b 100644
@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan)
 {
 	return &chan->dev->device;
 }
-static struct device *chan2parent(struct dma_chan *chan)
-{
-	return chan->dev->device.parent;
-}
 
 #if defined(VERBOSE_DEBUG)
 static void vdbg_dump_regs(struct at_dma_chan *atchan)
Signature · 1 line
1.8.4.1.601.g02b3b1d
Acked-by on v1 1/1
#1 lore raw

On 26/11/2013 19:43, Olof Johansson :

Quoted 10 lines

commit 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in the at_hdmac driver:

drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]

Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')
Cc Bartlomiej Zolnierkiewicz <[email protected]>

Indeed,

Thanks Olof for having taken care of this.

Bye,

Quoted 26 lines

---

Dan,

Looks like you fixed up the DesignWare driver for the same issue but this needs it to.

  drivers/dma/at_hdmac_regs.h | 4 ----
  1 file changed, 4 deletions(-)
drivers/dma/at_hdmac_regs.h +0 -4
index f31d647acdfa..2787aba60c6b 100644
@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan)
  {
  	return &chan->dev->device;
  }
-static struct device *chan2parent(struct dma_chan *chan)
-{
-	return chan->dev->device.parent;
-}
 
  #if defined(VERBOSE_DEBUG)
  static void vdbg_dump_regs(struct at_dma_chan *atchan)
Signature · 1 line
Nicolas Ferre
Acked-by on v1 1/1
#2 lore raw
In reply to Olof Johansson

Hi Olof,

Quoted 10 lines · Olof Johansson

commit 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in the at_hdmac driver:

drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]

Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')
Cc Bartlomiej Zolnierkiewicz <[email protected]>

Thanks for catching and fixing this.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

Quoted 25 lines

---

Dan,

Looks like you fixed up the DesignWare driver for the same issue but this needs it to.

 drivers/dma/at_hdmac_regs.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/dma/at_hdmac_regs.h +0 -4
index f31d647acdfa..2787aba60c6b 100644
@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan)
 {
 	return &chan->dev->device;
 }
-static struct device *chan2parent(struct dma_chan *chan)
-{
-	return chan->dev->device.parent;
-}
 
 #if defined(VERBOSE_DEBUG)
 static void vdbg_dump_regs(struct at_dma_chan *atchan)
Acked-by on v1 1/1
#3 lore raw
In reply to Olof Johansson
Quoted 10 lines · Olof Johansson

commit 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers') refactored some code which resulted in an unused function in the at_hdmac driver:

drivers/dma/at_hdmac_regs.h:350:23: warning: 'chan2parent' defined but
not used [-Wunused-function]

Fixes 54f8d501e8428 ('dmaengine: remove DMA unmap from drivers')
Cc Bartlomiej Zolnierkiewicz <[email protected]>
Quoted 32 lines

---

Dan,

Looks like you fixed up the DesignWare driver for the same issue but this needs it to.

 drivers/dma/at_hdmac_regs.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/dma/at_hdmac_regs.h +0 -4
index f31d647acdfa..2787aba60c6b 100644
@@ -347,10 +347,6 @@ static struct device *chan2dev(struct dma_chan *chan)
 {
 	return &chan->dev->device;
 }
-static struct device *chan2parent(struct dma_chan *chan)
-{
-	return chan->dev->device.parent;
-}
 
 #if defined(VERBOSE_DEBUG)
 static void vdbg_dump_regs(struct at_dma_chan *atchan)
Signature · 6 lines
1.8.4.1.601.g02b3b1d

--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html