Skip to contentSkip to conversation

lib: devres: Export devm_ioremap_resource_wc

PATCH In review Daniel Baluta (OSS) 3 participants 4 messages Jan 23, 2020 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: devres: Export devm_ioremap_resource_wc

From: Daniel Baluta <[email protected]>

So that modules can also use it.

Fixes b873af620e58863b ("lib: devres: provide devm_ioremap_resource_wc()")
---
 lib/devres.c | 1 +
 1 file changed, 1 insertion(+)
lib/devres.c +1 -0
index 6ef51f159c54..7fe2bd75dfa3 100644
@@ -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
#1 lore raw
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()")
---
 lib/devres.c | 1 +
 1 file changed, 1 insertion(+)
lib/devres.c +0 -0
index 6ef51f159c54..7fe2bd75dfa3 100644

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

#2 lore raw
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()")
---
 lib/devres.c | 1 +
 1 file changed, 1 insertion(+)
lib/devres.c +0 -0
index 6ef51f159c54..7fe2bd75dfa3 100644

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?

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.

#3 lore raw
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()")
---
 lib/devres.c | 1 +
 1 file changed, 1 insertion(+)
lib/devres.c +0 -0
index 6ef51f159c54..7fe2bd75dfa3 100644

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?

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