# \[PATCH v6 06/12\] of: Export of\_node\_to\_nid()

- From: Thierry Reding \<thierry.reding@kernel.org\>
- Date: 2026-09-04 10:45:36 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2026/09/17512975
- Thread: https://ratatoskr.run/linux-devicetree/2026/09/17512969/t.md

```text
From: Thierry Reding <redacted>

Drivers buildable as a module may want to use this, so export it.

Signed-off-by: Thierry Reding <redacted>
---
 drivers/of/of_numa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c
index 230d5f628c1b..da2e9bd1717c 100644
--- a/drivers/of/of_numa.c
+++ b/drivers/of/of_numa.c
@@ -171,6 +171,7 @@ int of_node_to_nid(struct device_node *device)
 
 	return NUMA_NO_NODE;
 }
+EXPORT_SYMBOL(of_node_to_nid);
 
 int __init of_numa_init(void)
 {

-- 
2.55.0

```
