Skip to contentSkip to conversation

dma: timb_dma: Fix compiler warning

PATCH Applied [email protected] 2 participants 4 messages Feb 19, 2013 – Mar 21, 2013 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma: timb_dma: Fix compiler warning

From: "Maxin B. John" <[email protected]>

Fix this compiler warning:
warning: 'td_remove' defined but not used [-Wunused-function]

---
 drivers/dma/timb_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/timb_dma.c +1 -1
index 952f823..26107ba 100644
@@ -823,7 +823,7 @@ static struct platform_driver td_driver = {
 		.owner  = THIS_MODULE,
 	},
 	.probe	= td_probe,
-	.remove	= __exit_p(td_remove),
+	.remove	= td_remove,
 };
 
 module_platform_driver(td_driver);
Signature · 1 line
1.7.7
#1 lore raw
Quoted 24 lines · On Tue, Feb 19, 2013 at 9:33 PM, <[email protected]> wrote:

From: "Maxin B. John" <[email protected]>

Fix this compiler warning:
warning: 'td_remove' defined but not used [-Wunused-function]

---
 drivers/dma/timb_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/timb_dma.c +1 -2
index 952f823..26107ba 100644
@@ -823,7 +823,7 @@ static struct platform_driver td_driver = {
                .owner  = THIS_MODULE,
        },
        .probe  = td_probe,
-       .remove = __exit_p(td_remove),
+       .remove = td_remove,
 };
 
 module_platform_driver(td_driver);
--
Quoted 2 lines

1.7.7

ping..

#2 lore raw
In reply to [email protected]
Quoted 6 lines · On Tue, Feb 19, 2013 at 10:33:53PM +0200, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fix this compiler warning:
warning: 'td_remove' defined but not used [-Wunused-function]

Applied thanks

Quoted 20 lines
---
 drivers/dma/timb_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/timb_dma.c +1 -1
index 952f823..26107ba 100644
@@ -823,7 +823,7 @@ static struct platform_driver td_driver = {
 		.owner  = THIS_MODULE,
 	},
 	.probe	= td_probe,
-	.remove	= __exit_p(td_remove),
+	.remove	= td_remove,
 };
 
 module_platform_driver(td_driver);
Signature · 1 line
1.7.7
Applied
#3 lore raw
In reply to [email protected]
Quoted 6 lines · On Tue, Feb 19, 2013 at 10:33:53PM +0200, [email protected] wrote:

From: "Maxin B. John" <[email protected]>

Fix this compiler warning:
warning: 'td_remove' defined but not used [-Wunused-function]

Applied, thanks

Quoted 20 lines
---
 drivers/dma/timb_dma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/timb_dma.c +1 -1
index 952f823..26107ba 100644
@@ -823,7 +823,7 @@ static struct platform_driver td_driver = {
 		.owner  = THIS_MODULE,
 	},
 	.probe	= td_probe,
-	.remove	= __exit_p(td_remove),
+	.remove	= td_remove,
 };
 
 module_platform_driver(td_driver);
Signature · 1 line
1.7.7