Skip to contentSkip to conversation

ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg

PATCH Applied Arnd Bergmann 2 participants 2 messages Dec 12, 2023 – Dec 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg

From: Arnd Bergmann <[email protected]>

The cpufreq code can be in a loadable module, so the architecture support for it has to be exported:

ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined!

Fixes 310293a2b941 ("ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241")
---
 drivers/acpi/arm64/thermal_cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/arm64/thermal_cpufreq.c +2 -0
index d524f2cd6044..582854914c5c 100644
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <linux/acpi.h>
+#include <linux/export.h>
 
 #include "../internal.h"
 
@@ -18,3 +19,4 @@ int acpi_arch_thermal_cpufreq_pctg(void)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 26 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The cpufreq code can be in a loadable module, so the architecture support for it has to be exported:

ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined!

Fixes 310293a2b941 ("ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241")
---
 drivers/acpi/arm64/thermal_cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/arm64/thermal_cpufreq.c +1 -0
index d524f2cd6044..582854914c5c 100644
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <linux/acpi.h>
+#include <linux/export.h>
 
 #include "../internal.h"
 

drivers/acpi/arm64/thermal_cpufreq.c int acpi_arch_thermal_cpufreq_pctg(void)

Quoted 5 lines
drivers/acpi/arm64/thermal_cpufreq.c +1 -1
@@ -18,3 +19,4 @@ int acpi_arch_thermal_cpufreq_pctg(void)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);
--

Applied, thanks!