[PATCH] drivers: acpi: arm64: thermal_cpufreq: export module
Anders Roxell
anders.roxell at linaro.org
Fri Dec 8 02:33:32 PST 2023
The following build error shows up when building an allmodconfig kernel
on arch=arm64:
ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined!
make[3]: *** [/next/scripts/Makefile.modpost:145: Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/tmp/next/Makefile:1876: modpost] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/tmp/next/Makefile:243: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:243: __sub-make] Error 2
make: Target '__all' not remade because of errors.
Solve the issue by export acpi_arch_thermal_cpufreq_pctg() since the
function are used in function 'acpi_thermal_cpufreq_config()'.
Fixes: a02f66bb3cf4 ("ACPI: Move ACPI_HOTPLUG_CPU to be disabled on arm64 and riscv")
Suggested-by: Arnd Bergmann <arnd at arndb.de>
Signed-off-by: Anders Roxell <anders.roxell at linaro.org>
---
drivers/acpi/arm64/thermal_cpufreq.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/acpi/arm64/thermal_cpufreq.c b/drivers/acpi/arm64/thermal_cpufreq.c
index d524f2cd6044..582854914c5c 100644
--- a/drivers/acpi/arm64/thermal_cpufreq.c
+++ b/drivers/acpi/arm64/thermal_cpufreq.c
@@ -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);
--
2.42.0
More information about the linux-arm-kernel
mailing list