All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Qiu <jack.qiu@huawei.com>
To: <linux-pm@vger.kernel.org>
Subject: [PATCH -next] opp: export dev_pm_opp_adjust_voltage
Date: Wed, 17 Jun 2020 09:20:24 +0800	[thread overview]
Message-ID: <20200617012024.41704-1-jack.qiu@huawei.com> (raw)

dev_pm_opp_adjust_voltage() is used in qcom-cpufreq-hw module, so export
it to GPL modules. otherwise compile error occurred:
$ make allmodconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
$ make -j64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

ERROR: modpost: "dev_pm_opp_adjust_voltage"
[drivers/cpufreq/qcom-cpufreq-hw.ko] undefined

Signed-off-by: Jack Qiu <jack.qiu@huawei.com>
---
 drivers/opp/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 6937bf45f497..c9336aac74e9 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -2302,6 +2302,7 @@ int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq,
 	dev_pm_opp_put_opp_table(opp_table);
 	return r;
 }
+EXPORT_SYMBOL_GPL(dev_pm_opp_adjust_voltage);

 /**
  * dev_pm_opp_enable() - Enable a specific OPP
--
2.17.1


                 reply	other threads:[~2020-06-17  0:29 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=20200617012024.41704-1-jack.qiu@huawei.com \
    --to=jack.qiu@huawei.com \
    --cc=linux-pm@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.