Skip to contentSkip to conversation

mmc: host: dw: fix possible build error

PATCH In review Felipe Balbi 3 participants 5 messages Feb 25, 2014 – Mar 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: host: dw: fix possible build error

Fix the following build errors:

drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_suspend’:
drivers/mmc/host/dw_mmc-k3.c:58:2: error: implicit declaration of
function ‘dw_mci_suspend’ [-Werror=implicit-function-declaration]
ret = dw_mci_suspend(host);
^
drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_resume’:
drivers/mmc/host/dw_mmc-k3.c:76:2: error: implicit declaration of
function ‘dw_mci_resume’ [-Werror=implicit-function-declaration]
return dw_mci_resume(host);
^
drivers/mmc/host/dw_mmc-k3.c: At top level:
drivers/mmc/host/dw_mmc-k3.c:53:12: warning: ‘dw_mci_k3_suspend’ defined
but not used [-Wunused-function]
static int dw_mci_k3_suspend(struct device *dev)

            ^
drivers/mmc/host/dw_mmc-k3.c:65:12: warning: ‘dw_mci_k3_resume’ defined
	but not used [-Wunused-function]
 static int dw_mci_k3_resume(struct device *dev)
            ^
---
 drivers/mmc/host/dw_mmc-k3.c | 2 ++
 drivers/mmc/host/dw_mmc.h    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/dw_mmc-k3.c +2 -0
index f567c21..650f9cc 100644
@@ -50,6 +50,7 @@ static int dw_mci_k3_probe(struct platform_device *pdev)
 	return dw_mci_pltfm_register(pdev, drv_data);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int dw_mci_k3_suspend(struct device *dev)
 {
 	struct dw_mci *host = dev_get_drvdata(dev);
@@ -75,6 +76,7 @@ static int dw_mci_k3_resume(struct device *dev)
 
 	return dw_mci_resume(host);
 }
+#endif /* CONFIG_PM_SLEEP */
 
 static SIMPLE_DEV_PM_OPS(dw_mci_k3_pmops, dw_mci_k3_suspend, dw_mci_k3_resume);
 
drivers/mmc/host/dw_mmc.h +1 -1
index 6bf24ab..1f7a745 100644
@@ -185,7 +185,7 @@
 
 extern int dw_mci_probe(struct dw_mci *host);
 extern void dw_mci_remove(struct dw_mci *host);
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 extern int dw_mci_suspend(struct dw_mci *host);
 extern int dw_mci_resume(struct dw_mci *host);
 #endif
Signature · 1 line
1.9.0
maintainer Acked-by on v1 1/1
#1 lore raw

Hi, Felipe.

When you send the patch related with dw_mmc controller, could you use the prefix "mmc: dw_mmc:"? "mmc: dw_mmc: fix possible build error"

Best Regards,
Jaehoon Chung

Quoted 62 lines · Felipe Balbi

Fix the following build errors:

drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_suspend’:
drivers/mmc/host/dw_mmc-k3.c:58:2: error: implicit declaration of
function ‘dw_mci_suspend’ [-Werror=implicit-function-declaration]
ret = dw_mci_suspend(host);
^
drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_resume’:
drivers/mmc/host/dw_mmc-k3.c:76:2: error: implicit declaration of
function ‘dw_mci_resume’ [-Werror=implicit-function-declaration]
return dw_mci_resume(host);
^
drivers/mmc/host/dw_mmc-k3.c: At top level:
drivers/mmc/host/dw_mmc-k3.c:53:12: warning: ‘dw_mci_k3_suspend’ defined
but not used [-Wunused-function]
static int dw_mci_k3_suspend(struct device *dev)

            ^
drivers/mmc/host/dw_mmc-k3.c:65:12: warning: ‘dw_mci_k3_resume’ defined
	but not used [-Wunused-function]
 static int dw_mci_k3_resume(struct device *dev)
            ^
---
 drivers/mmc/host/dw_mmc-k3.c | 2 ++
 drivers/mmc/host/dw_mmc.h    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/dw_mmc-k3.c +2 -0
index f567c21..650f9cc 100644
@@ -50,6 +50,7 @@ static int dw_mci_k3_probe(struct platform_device *pdev)
 	return dw_mci_pltfm_register(pdev, drv_data);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int dw_mci_k3_suspend(struct device *dev)
 {
 	struct dw_mci *host = dev_get_drvdata(dev);
@@ -75,6 +76,7 @@ static int dw_mci_k3_resume(struct device *dev)
 
 	return dw_mci_resume(host);
 }
+#endif /* CONFIG_PM_SLEEP */
 
 static SIMPLE_DEV_PM_OPS(dw_mci_k3_pmops, dw_mci_k3_suspend, dw_mci_k3_resume);
 
drivers/mmc/host/dw_mmc.h +1 -1
index 6bf24ab..1f7a745 100644
@@ -185,7 +185,7 @@
 
 extern int dw_mci_probe(struct dw_mci *host);
 extern void dw_mci_remove(struct dw_mci *host);
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 extern int dw_mci_suspend(struct dw_mci *host);
 extern int dw_mci_resume(struct dw_mci *host);
 #endif
#2 lore raw

Hi,

Quoted 4 lines · Jaehoon Chung

Hi, Felipe.

When you send the patch related with dw_mmc controller, could you use the prefix "mmc: dw_mmc:"? "mmc: dw_mmc: fix possible build error"

sure, no problem. Do I *really* need to resend though ? It's already -rc5 and I still don't see this patch merged.

cheers

Signature · 1 line
balbi
#3 lore raw

Hi,

Quoted 5 lines · Felipe Balbi
Quoted 2 lines

When you send the patch related with dw_mmc controller, could you use the prefix "mmc: dw_mmc:"? "mmc: dw_mmc: fix possible build error"

sure, no problem. Do I *really* need to resend though ? It's already -rc5 and I still don't see this patch merged.

No need to resend, I can fix this up -- pushed to mmc-next, thanks.

- Chris.

Signature · 1 line
Chris Ball   <[email protected]>   <http://printf.net/>
#4 lore raw
Quoted 10 lines · Chris Ball

Hi,

Quoted 5 lines · Felipe Balbi
Quoted 2 lines

When you send the patch related with dw_mmc controller, could you use the prefix "mmc: dw_mmc:"? "mmc: dw_mmc: fix possible build error"

sure, no problem. Do I *really* need to resend though ? It's already -rc5 and I still don't see this patch merged.

No need to resend, I can fix this up -- pushed to mmc-next, thanks.

Thanks Chris.

Signature · 1 line
balbi