Linux-ARM-Kernel Archive on
 help / color / 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 <>
 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;

linux-arm-kernel mailing list

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

only message in thread, back to index

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

Linux-ARM-Kernel Archive on

Archives are clonable:
	git clone --mirror linux-arm-kernel/git/0.git
	git clone --mirror linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ \
	public-inbox-index linux-arm-kernel

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox