Skip to contentSkip to conversation

arm64: Remove exporting cpu_logical_map symbol

PATCH Applied Sudeep Holla 2 participants 3 messages Sep 1, 2020 – Sep 2, 2020 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Remove exporting cpu_logical_map symbol

Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") exported cpu_logical_map in order to fix tegra194-cpufreq module build failure.

As this might potentially cause problem while supporting physical CPU hotplug, tegra194-cpufreq module was reworded to avoid use of cpu_logical_map() via the commit 93d0c1ab2328 ("cpufreq: replace cpu_logical_map() with read_cpuid_mpir()")

Since cpu_logical_map was exported to fix the module build temporarily, let us remove the same before it gains any user again.

---
 arch/arm64/kernel/setup.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/kernel/setup.c +0 -1
index 77c4c9bad1b8..53acbeca4f57 100644
@@ -280,7 +280,6 @@ u64 cpu_logical_map(int cpu)
 {
 	return __cpu_logical_map[cpu];
 }
-EXPORT_SYMBOL_GPL(cpu_logical_map);
 
 void __init __no_sanitize_address setup_arch(char **cmdline_p)
 {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw
Quoted 10 lines · Sudeep Holla

Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") exported cpu_logical_map in order to fix tegra194-cpufreq module build failure.

As this might potentially cause problem while supporting physical CPU hotplug, tegra194-cpufreq module was reworded to avoid use of cpu_logical_map() via the commit 93d0c1ab2328 ("cpufreq: replace cpu_logical_map() with read_cpuid_mpir()")

[...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: Remove exporting cpu_logical_map symbol

      https://git.kernel.org/arm64/c/60295d50958e
Signature · 1 line
Catalin
maintainer
#2 lore raw
Quoted 10 lines · Catalin Marinas
Quoted 9 lines · Sudeep Holla

Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") exported cpu_logical_map in order to fix tegra194-cpufreq module build failure.

As this might potentially cause problem while supporting physical CPU hotplug, tegra194-cpufreq module was reworded to avoid use of cpu_logical_map() via the commit 93d0c1ab2328 ("cpufreq: replace cpu_logical_map() with read_cpuid_mpir()")

Quoted 6 lines
Quoted 1 line

[...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: Remove exporting cpu_logical_map symbol

      https://git.kernel.org/arm64/c/60295d50958e

Either my script on top of b4 is broken or b4 0.5.2 has a bug. It was supposed to only reply to Sudeep here but somehow combined it with the recipient list from Jessica's patch (arm64/module: set trampoline section flags regardless of CONFIG_DYNAMIC_FTRACE).

Signature · 1 line
Catalin