Skip to contentSkip to conversation

-next build failures in k3dma.c

PATCH Applied Mark Brown 3 participants 4 messages Jan 13, 2015 1 message not in the archive dmaengine

lore
Share & tools
lore

Mark Brown

author
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Build bot for Mark Brown

arm-allmodconfig
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'

For several days now k3dma.c has been failing to build in an ARM allmodconfig because the definition of k3_dma_resume() introduced in db08425ebd51f (dmaengine: k3: Split device_control) taking a struct dma_chan * conflicts with that which has been in the file since it was originally merged taking a struct device *.

#2 lore raw
Quoted 10 lines · On Tuesday 13 January 2015 12:07:51 Mark Brown wrote:
Quoted 2 lines · Build bot for Mark Brown

arm-allmodconfig
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'

For several days now k3dma.c has been failing to build in an ARM allmodconfig because the definition of k3_dma_resume() introduced in db08425ebd51f (dmaengine: k3: Split device_control) taking a struct dma_chan * conflicts with that which has been in the file since it was originally merged taking a struct device *.

Incidentally, I've restarted by randconfig build testing today, will follow up with my fix.

Arnd

#3 lore raw

PATCH 1/1 dmaengine: k3: fix duplicate function definition

In reply to Mark Brown

Commit db08425ebd51f ("dmaengine: k3: Split device_control") introduced two new helper functions, which unfortunately have the same names as the existing suspend/resume functions, resulting in a build error when CONFIG_PM_SLEEP is enabled:

drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
static int k3_dma_resume(struct device *dev)

            ^
drivers/dma/k3dma.c:625:12: note: previous definition of 'k3_dma_resume' was here
 static int k3_dma_resume(struct dma_chan *chan)
            ^
Fixes db08425ebd51f ("dmaengine: k3: Split device_control")
drivers/dma/k3dma.c +3 -3
index 49be7f687c4c..8cc61ae42f42 100644
@@ -804,7 +804,7 @@ static int k3_dma_remove(struct platform_device *op)
 }
 
 #ifdef CONFIG_PM_SLEEP
-static int k3_dma_suspend(struct device *dev)
+static int k3_dma_suspend_dev(struct device *dev)
 {
 	struct k3_dma_dev *d = dev_get_drvdata(dev);
 	u32 stat = 0;
@@ -820,7 +820,7 @@ static int k3_dma_suspend(struct device *dev)
 	return 0;
 }
 
-static int k3_dma_resume(struct device *dev)
+static int k3_dma_resume_dev(struct device *dev)
 {
 	struct k3_dma_dev *d = dev_get_drvdata(dev);
 	int ret = 0;
@@ -835,7 +835,7 @@ static int k3_dma_resume(struct device *dev)
 }
 #endif
 
-static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
+static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend_dev, k3_dma_resume_dev);
 
 static struct platform_driver k3_pdma_driver = {
 	.driver		= {
Applied
#4 lore raw

Re: [PATCH] dmaengine: k3: fix duplicate function definition

Quoted 10 lines · Arnd Bergmann

Commit db08425ebd51f ("dmaengine: k3: Split device_control") introduced two new helper functions, which unfortunately have the same names as the existing suspend/resume functions, resulting in a build error when CONFIG_PM_SLEEP is enabled:

drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
static int k3_dma_resume(struct device *dev)

            ^

drivers/dma/k3dma.c:625:12: note: previous definition of 'k3_dma_resume' was here
static int k3_dma_resume(struct dma_chan *chan)

Applied, Thanks

Signature · 1 line
~Vinod