Skip to contentSkip to conversation

ARM: topology: make cpu_corepower_mask static

PATCH New Ma Feng 1 participant 1 message May 11, 2020 Arm (32-bit)

lore
Share & tools
lore

Ma Feng

author
#0 lore raw

PATCH 1/1 ARM: topology: make cpu_corepower_mask static

Fix sparse warning:

arch/arm/kernel/topology.c:184:22: warning: symbol 'cpu_corepower_mask' was not declared. Should it be static?

---
 arch/arm/kernel/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/topology.c +1 -1
index b5adaf7..563fdaa 100644
@@ -181,7 +181,7 @@ static inline void update_cpu_capacity(unsigned int cpuid) {}
  * The current assumption is that we can power gate each core independently.
  * This will be superseded by DT binding once available.
  */
-const struct cpumask *cpu_corepower_mask(int cpu)
+static const struct cpumask *cpu_corepower_mask(int cpu)
 {
 	return &cpu_topology[cpu].thread_sibling;
 }

--
2.6.2

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel