public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] of: rexport of_find_next_cache_node()
@ 2023-10-11 13:14 Arnd Bergmann
  2023-10-11 13:59 ` Sudeep Holla
  2023-10-11 18:22 ` Dmitry Baryshkov
  0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2023-10-11 13:14 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand
  Cc: Arnd Bergmann, Greg Kroah-Hartman, Yang Yang, Geert Uytterhoeven,
	Sebastian Reichel, Miquel Raynal, Dmitry Baryshkov, Viresh Kumar,
	Sudeep Holla, Benjamin Herrenschmidt, devicetree, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

This function is now called from a cpufreq driver, but that breaks the
build when the caller is in a loadable module, because of a missing
export:

ERROR: modpost: "of_find_next_cache_node" [drivers/cpufreq/qcom-cpufreq-nvmem.ko] undefined!

Export this as a GPL-only symbol, like the other related functions in
this file.

Fixes: 7683a63c08ff5 ("cpufreq: qcom-nvmem: create L2 cache device")
Fixes: a3e31b4588443 ("of: Move definition of of_find_next_cache_node into common code.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/of/base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 8d93cb6ea9cde..c4cf558e60d92 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1905,6 +1905,7 @@ struct device_node *of_find_next_cache_node(const struct device_node *np)
 
 	return NULL;
 }
+EXPORT_SYMBOL_GPL(of_find_next_cache_node);
 
 /**
  * of_find_last_cache_level - Find the level at which the last cache is
-- 
2.39.2


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

end of thread, other threads:[~2023-10-11 18:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 13:14 [PATCH] of: rexport of_find_next_cache_node() Arnd Bergmann
2023-10-11 13:59 ` Sudeep Holla
2023-10-11 14:05   ` Arnd Bergmann
2023-10-11 14:38     ` Sudeep Holla
2023-10-11 18:22 ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox