Skip to contentSkip to conversation

opp: core: Add missing export to core.c

PATCH Valdis Klētnieks 2 participants 2 messages Jun 20, 2020 – Jun 22, 2020 Operating performance points (OPP)

lore
Share & tools
lore
#0 lore raw

After this commit, a 'make allmodconfig' fails due to a missing export. commit 5f2430fb40c74db85764c8a472ecd6849025dd3f

Author: Sibi Sankar <[email protected]>
Date:   Sat Jun 6 03:03:31 2020 +0530

cpufreq: qcom: Update the bandwidth levels on frequency change

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

Provide the export.

Fixes 5f2430fb40c7 ("cpufreq: qcom: Update the bandwidth levels on frequency change")
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
#1 lore raw
Quoted 20 lines · Valdis Klētnieks

After this commit, a 'make allmodconfig' fails due to a missing export. commit 5f2430fb40c74db85764c8a472ecd6849025dd3f

Author: Sibi Sankar <[email protected]>
Date:   Sat Jun 6 03:03:31 2020 +0530

cpufreq: qcom: Update the bandwidth levels on frequency change

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

Provide the export.

Fixes 5f2430fb40c7 ("cpufreq: qcom: Update the bandwidth levels on frequency change")
drivers/opp/core.c +0 -0
index 6937bf45f497..c9336aac74e9 100644

drivers/opp/core.c int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq, · line 2308

Quoted 7 lines
drivers/opp/core.c +1 -0
@@ -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

Applied with reworded logs.

Signature · 1 line
viresh