linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix inconsistent of_node_to_nid EXPORT_SYMBOL handling
@ 2017-02-01 22:52 Shailendra Singh
  2017-02-09 12:18 ` Michael Ellerman
  2017-02-14 12:40 ` Michael Ellerman
  0 siblings, 2 replies; 4+ messages in thread
From: Shailendra Singh @ 2017-02-01 22:52 UTC (permalink / raw)
  To: linuxppc-dev, jk, shailendras, apopple, balbirs, aritger,
	jhubbard, scheung, amanjunatha, jmckenna

The generic implementation of of_node_to_nid is EXPORT_SYMBOL.

The powerpc implementation added by following commit is EXPORT_SYMBOL_GPL.
commit 953039c8df7b ("[PATCH] powerpc: Allow devices to register with numa
topology")

This creates an inconsistency for of_node_to_nid callers across
architectures.

Update the powerpc implementation to be exported consistently with the
generic implementation.

Signed-off-by: Shailendra Singh <shailendras@nvidia.com>

Reviewed-by: Andy Ritger <aritger@nvidia.com>
---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index b1099cb2f393..8aa4ca3c84c9 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -290,7 +290,7 @@ int of_node_to_nid(struct device_node *device)
 
 	return nid;
 }
-EXPORT_SYMBOL_GPL(of_node_to_nid);
+EXPORT_SYMBOL(of_node_to_nid);
 
 static int __init find_min_common_depth(void)
 {
-- 
2.4.11

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-14 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 22:52 [PATCH] powerpc: Fix inconsistent of_node_to_nid EXPORT_SYMBOL handling Shailendra Singh
2017-02-09 12:18 ` Michael Ellerman
2017-02-09 21:15   ` Shailendra Singh
2017-02-14 12:40 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).