From: Randy Dunlap <rdunlap@infradead.org>
To: linux-kernel@vger.kernel.org
Cc: Randy Dunlap <rdunlap@infradead.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Georgi Djakov <djakov@kernel.org>
Subject: [PATCH] interconnect: add license and exports to fix build errors
Date: Sat, 20 May 2023 13:12:48 -0700 [thread overview]
Message-ID: <20230520201248.2437-1-rdunlap@infradead.org> (raw)
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");
reply other threads:[~2023-05-20 20:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230520201248.2437-1-rdunlap@infradead.org \
--to=rdunlap@infradead.org \
--cc=djakov@kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®