Skip to contentSkip to conversation

opp: export dev_pm_opp_adjust_voltage

PATCH New Jack Qiu 1 participant 1 message Jun 17, 2020 Operating performance points (OPP)

lore
Share & tools
lore

Jack Qiu

author
#0 lore raw

PATCH 1/1 opp: export dev_pm_opp_adjust_voltage

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

---
 drivers/opp/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/opp/core.c +1 -0
index 6937bf45f497..c9336aac74e9 100644
@@ -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