s390: make couple of functions and variables static
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 16 Mar 2015 11:44:10 +0000 (12:44 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 25 Mar 2015 10:49:45 +0000 (11:49 +0100)
As reported by sparse these can and should be static.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/topology.c
arch/s390/mm/mmap.c

index 14da43b801d93c2041f2d4964028fc180301eeff..5728c5bd44a8241b0d2fd3c79c770154194501ba 100644 (file)
@@ -421,7 +421,7 @@ int topology_cpu_init(struct cpu *cpu)
        return sysfs_create_group(&cpu->dev.kobj, &topology_cpu_attr_group);
 }
 
-const struct cpumask *cpu_thread_mask(int cpu)
+static const struct cpumask *cpu_thread_mask(int cpu)
 {
        return &per_cpu(cpu_topology, cpu).thread_mask;
 }
index 2e8378796e8794bc7142f583c096661322f35b13..b68af0564a423cf757d9b3c5f2522520c7c306b1 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/pgalloc.h>
 
 unsigned long mmap_rnd_mask;
-unsigned long mmap_align_mask;
+static unsigned long mmap_align_mask;
 
 static unsigned long stack_maxrandom_size(void)
 {