Skip to content

Commit

Permalink
powerpc: Drop GPL from of_node_to_nid() export to match other arches
Browse files Browse the repository at this point in the history
The generic implementation of of_node_to_nid() is EXPORT_SYMBOL, added
in commit 298535c ("of, numa: Add NUMA of binding
implementation.").

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

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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Shailendra Singh authored and Michael Ellerman committed Feb 10, 2017
1 parent 762df10 commit be9ba9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit be9ba9f

Please sign in to comment.