mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] interconnect: add license and exports to fix build errors
@ 2023-05-20 20:12 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2023-05-20 20:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Randy Dunlap, Dmitry Baryshkov, Georgi Djakov

icc-clk.c should have a MODULE_LICENSE() and export its register and
unregister functions to prevent build errors, so add them.

ERROR: modpost: missing MODULE_LICENSE() in drivers/interconnect/icc-clk.o
ERROR: modpost: "icc_clk_unregister" [drivers/clk/qcom/clk-cbf-8996.ko] undefined!
ERROR: modpost: "icc_clk_register" [drivers/clk/qcom/clk-cbf-8996.ko] undefined!

Fixes: 0ac2a08f42ce ("interconnect: add clk-based icc provider support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Georgi Djakov <djakov@kernel.org>
---
 drivers/interconnect/icc-clk.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -- a/drivers/interconnect/icc-clk.c b/drivers/interconnect/icc-clk.c
--- a/drivers/interconnect/icc-clk.c
+++ b/drivers/interconnect/icc-clk.c
@@ -5,8 +5,10 @@
 
 #include <linux/clk.h>
 #include <linux/device.h>
+#include <linux/export.h>
 #include <linux/interconnect-clk.h>
 #include <linux/interconnect-provider.h>
+#include <linux/module.h>
 
 struct icc_clk_node {
 	struct clk *clk;
@@ -146,6 +148,7 @@ err:
 
 	return ERR_PTR(ret);
 }
+EXPORT_SYMBOL_GPL(icc_clk_register);
 
 /**
  * icc_clk_unregister() - unregister a previously registered clk interconnect provider
@@ -166,3 +169,6 @@ void icc_clk_unregister(struct icc_provi
 			clk_disable_unprepare(qn->clk);
 	}
 }
+EXPORT_SYMBOL_GPL(icc_clk_unregister);
+
+MODULE_LICENSE("GPL");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-20 20:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-20 20:12 [PATCH] interconnect: add license and exports to fix build errors Randy Dunlap

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

all inboxes | Powered by JetHome®