lib: devres: Export devm_ioremap_resource_wc
PATCH 1/1 lib: devres: Export devm_ioremap_resource_wc
From: Daniel Baluta <[email protected]>
So that modules can also use it.
--- lib/devres.c | 1 + 1 file changed, 1 insertion(+)
lib/devres.c +1 -0
@@ -182,6 +182,7 @@ void __iomem *devm_ioremap_resource_wc(struct device *dev, {return __devm_ioremap_resource (dev, res,DEVM_IOREMAP_WC ); } +EXPORT_SYMBOL (devm_ioremap_resource_wc);/* * devm_of_iomap - Requests a resource and maps the memory mapped IO
Signature · 1 line
2.17.1
Quoted 15 lines · Daniel Baluta (OSS)
From: Daniel Baluta <[email protected]>
So that modules can also use it.
Fixes b873af620e58863b ("lib: devres: provide devm_ioremap_resource_wc()")Signed-off-by Daniel Baluta <[email protected]>--- lib/devres.c | 1 + 1 file changed, 1 insertion(+)lib/devres.c +0
-0
lib/devres.c void __iomem *devm_ioremap_resource_wc(struct device *dev, · line 185
Quoted 4 lines
lib/devres.c +1
-0@@ -182,6 +182,7 @@ void __iomem *devm_ioremap_resource_wc(struct device *dev, {return __devm_ioremap_resource (dev, res,DEVM_IOREMAP_WC ); } +EXPORT_SYMBOL (devm_ioremap_resource_wc);
EXPORT_SYMBOL_GPL() perhaps?
What in-tree driver needs this?
thanks,
greg k-h
Quoted 24 lines · On Thu, Jan 23, 2020 at 7:57 PM [email protected]…
Quoted 15 lines · Daniel Baluta (OSS)
From: Daniel Baluta <[email protected]>
So that modules can also use it.
Fixes b873af620e58863b ("lib: devres: provide devm_ioremap_resource_wc()")Signed-off-by Daniel Baluta <[email protected]>--- lib/devres.c | 1 + 1 file changed, 1 insertion(+)lib/devres.c +0
-0lib/devres.c void __iomem *devm_ioremap_resource_wc(struct device *dev, · line 185
Quoted 4 lines
lib/devres.c +1
-0@@ -182,6 +182,7 @@ void __iomem *devm_ioremap_resource_wc(struct device *dev, {return __devm_ioremap_resource (dev, res,DEVM_IOREMAP_WC ); } +EXPORT_SYMBOL (devm_ioremap_resource_wc);
EXPORT_SYMBOL_GPL()perhaps?
Quoted 1 line
What in-tree driver needs this?
I was experimenting with an out of tree driver and I also was using it wrong :D. Indeed looks like there is no real potential user so far in the kernel tree.
Perhaps: drivers/net/ethernet/amazon/ena/ena_netdev.c
Also, I chose EXPORT_SYMBOL because the same way its cousin devm_ioremap_resource.
Daniel.
Quoted 26 lines · Daniel Baluta
Quoted 24 lines · On Thu, Jan 23, 2020 at 7:57 PM [email protected]…
Quoted 15 lines · Daniel Baluta (OSS)
From: Daniel Baluta <[email protected]>
So that modules can also use it.
Fixes b873af620e58863b ("lib: devres: provide devm_ioremap_resource_wc()")Signed-off-by Daniel Baluta <[email protected]>--- lib/devres.c | 1 + 1 file changed, 1 insertion(+)lib/devres.c +0
-0lib/devres.c void __iomem *devm_ioremap_resource_wc(struct device *dev, · line 185
Quoted 4 lines
lib/devres.c +1
-0@@ -182,6 +182,7 @@ void __iomem *devm_ioremap_resource_wc(struct device *dev, {return __devm_ioremap_resource (dev, res,DEVM_IOREMAP_WC ); } +EXPORT_SYMBOL (devm_ioremap_resource_wc);
EXPORT_SYMBOL_GPL()perhaps?
Quoted 4 lines
Quoted 1 line
What in-tree driver needs this?
I was experimenting with an out of tree driver and I also was using it wrong :D. Indeed looks like there is no real potential user so far in the kernel tree.
Great, we can drop it then :)
thanks,
greg k-h