linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: topology: make function static
@ 2019-05-22 10:03 Philippe Mazenauer
  0 siblings, 0 replies; only message in thread
From: Philippe Mazenauer @ 2019-05-22 10:03 UTC (permalink / raw)
  Cc: Rob Herring, Philippe Mazenauer, Russell King,
	moderated list:ARM PORT, open list

Make function cpu_corepower_mask() static, as it is only referenced in
this file.

../arch/arm/kernel/topology.c:195:23: warning: no previous prototype for ‘cpu_corepower_mask’ [-Wmissing-prototypes]
 const struct cpumask *cpu_corepower_mask(int cpu)
                       ^~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
 arch/arm/kernel/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index 60e375ce1ab2..5c8075ec8065 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -192,7 +192,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
  * 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.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-22 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22 10:03 [PATCH] arm: topology: make function static Philippe Mazenauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).