diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-09-06 13:10:48 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-09-07 05:58:03 -0400 |
commit | 63df41d663fc27e96571bfea86d3f9ee81289e07 (patch) | |
tree | a6d460af08dcbaf9e4e3e8d0e46678f10f836024 /arch/s390 | |
parent | 5b512beb0f18024e32e228976e3690d349b05b6a (diff) |
s390: make various functions static, add declarations to header files
Make various functions static, add declarations to header files to
fix a couple of sparse findings.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/entry.h | 18 | ||||
-rw-r--r-- | arch/s390/kernel/ftrace.c | 1 | ||||
-rw-r--r-- | arch/s390/kernel/irq.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/machine_kexec.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/smp.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/suspend.c | 1 | ||||
-rw-r--r-- | arch/s390/mm/maccess.c | 1 | ||||
-rw-r--r-- | arch/s390/mm/pgtable.c | 2 |
8 files changed, 13 insertions, 16 deletions
diff --git a/arch/s390/kernel/entry.h b/arch/s390/kernel/entry.h index 3ddbc26d246e..e9b04c33d383 100644 --- a/arch/s390/kernel/entry.h +++ b/arch/s390/kernel/entry.h | |||
@@ -53,27 +53,21 @@ void handle_signal32(unsigned long sig, struct k_sigaction *ka, | |||
53 | siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); | 53 | siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); |
54 | void do_notify_resume(struct pt_regs *regs); | 54 | void do_notify_resume(struct pt_regs *regs); |
55 | 55 | ||
56 | struct ext_code; | 56 | void __init init_IRQ(void); |
57 | void do_extint(struct pt_regs *regs); | 57 | void do_IRQ(struct pt_regs *regs, int irq); |
58 | void do_restart(void); | 58 | void do_restart(void); |
59 | void __init startup_init(void); | 59 | void __init startup_init(void); |
60 | void die(struct pt_regs *regs, const char *str); | 60 | void die(struct pt_regs *regs, const char *str); |
61 | 61 | int setup_profiling_timer(unsigned int multiplier); | |
62 | void __init time_init(void); | 62 | void __init time_init(void); |
63 | int pfn_is_nosave(unsigned long); | ||
64 | void s390_early_resume(void); | ||
65 | unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip); | ||
63 | 66 | ||
64 | struct s390_mmap_arg_struct; | 67 | struct s390_mmap_arg_struct; |
65 | struct fadvise64_64_args; | 68 | struct fadvise64_64_args; |
66 | struct old_sigaction; | 69 | struct old_sigaction; |
67 | 70 | ||
68 | long sys_mmap2(struct s390_mmap_arg_struct __user *arg); | ||
69 | long sys_s390_ipc(uint call, int first, unsigned long second, | ||
70 | unsigned long third, void __user *ptr); | ||
71 | long sys_s390_personality(unsigned int personality); | ||
72 | long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low, | ||
73 | size_t len, int advice); | ||
74 | long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args); | ||
75 | long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high, | ||
76 | u32 len_low); | ||
77 | long sys_sigreturn(void); | 71 | long sys_sigreturn(void); |
78 | long sys_rt_sigreturn(void); | 72 | long sys_rt_sigreturn(void); |
79 | long sys32_sigreturn(void); | 73 | long sys32_sigreturn(void); |
diff --git a/arch/s390/kernel/ftrace.c b/arch/s390/kernel/ftrace.c index e3043aef87a9..4c8072068125 100644 --- a/arch/s390/kernel/ftrace.c +++ b/arch/s390/kernel/ftrace.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/kprobes.h> | 15 | #include <linux/kprobes.h> |
16 | #include <trace/syscall.h> | 16 | #include <trace/syscall.h> |
17 | #include <asm/asm-offsets.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include "entry.h" | ||
18 | 19 | ||
19 | #ifdef CONFIG_DYNAMIC_FTRACE | 20 | #ifdef CONFIG_DYNAMIC_FTRACE |
20 | 21 | ||
diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c index 6834277124c9..6eba6fd8a8ec 100644 --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c | |||
@@ -206,7 +206,7 @@ struct ext_int_info { | |||
206 | }; | 206 | }; |
207 | 207 | ||
208 | /* ext_int_hash_lock protects the handler lists for external interrupts */ | 208 | /* ext_int_hash_lock protects the handler lists for external interrupts */ |
209 | DEFINE_SPINLOCK(ext_int_hash_lock); | 209 | static DEFINE_SPINLOCK(ext_int_hash_lock); |
210 | 210 | ||
211 | static inline int ext_hash(u16 code) | 211 | static inline int ext_hash(u16 code) |
212 | { | 212 | { |
diff --git a/arch/s390/kernel/machine_kexec.c b/arch/s390/kernel/machine_kexec.c index ac2178161ec3..719e27b2cf22 100644 --- a/arch/s390/kernel/machine_kexec.c +++ b/arch/s390/kernel/machine_kexec.c | |||
@@ -50,7 +50,7 @@ static void add_elf_notes(int cpu) | |||
50 | /* | 50 | /* |
51 | * Initialize CPU ELF notes | 51 | * Initialize CPU ELF notes |
52 | */ | 52 | */ |
53 | void setup_regs(void) | 53 | static void setup_regs(void) |
54 | { | 54 | { |
55 | unsigned long sa = S390_lowcore.prefixreg_save_area + SAVE_AREA_BASE; | 55 | unsigned long sa = S390_lowcore.prefixreg_save_area + SAVE_AREA_BASE; |
56 | int cpu, this_cpu; | 56 | int cpu, this_cpu; |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index d386c4e9d2e5..1a4313a1b60f 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -362,7 +362,7 @@ void smp_yield_cpu(int cpu) | |||
362 | * Send cpus emergency shutdown signal. This gives the cpus the | 362 | * Send cpus emergency shutdown signal. This gives the cpus the |
363 | * opportunity to complete outstanding interrupts. | 363 | * opportunity to complete outstanding interrupts. |
364 | */ | 364 | */ |
365 | void smp_emergency_stop(cpumask_t *cpumask) | 365 | static void smp_emergency_stop(cpumask_t *cpumask) |
366 | { | 366 | { |
367 | u64 end; | 367 | u64 end; |
368 | int cpu; | 368 | int cpu; |
diff --git a/arch/s390/kernel/suspend.c b/arch/s390/kernel/suspend.c index 737bff38e3ee..a7a7537ce1e7 100644 --- a/arch/s390/kernel/suspend.c +++ b/arch/s390/kernel/suspend.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/ipl.h> | 13 | #include <asm/ipl.h> |
14 | #include <asm/cio.h> | 14 | #include <asm/cio.h> |
15 | #include <asm/pci.h> | 15 | #include <asm/pci.h> |
16 | #include "entry.h" | ||
16 | 17 | ||
17 | /* | 18 | /* |
18 | * References to section boundaries | 19 | * References to section boundaries |
diff --git a/arch/s390/mm/maccess.c b/arch/s390/mm/maccess.c index 921fa541dc04..d1e0e0c7a7e2 100644 --- a/arch/s390/mm/maccess.c +++ b/arch/s390/mm/maccess.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/gfp.h> | 14 | #include <linux/gfp.h> |
15 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
16 | #include <asm/ctl_reg.h> | 16 | #include <asm/ctl_reg.h> |
17 | #include <asm/io.h> | ||
17 | 18 | ||
18 | /* | 19 | /* |
19 | * This function writes to kernel memory bypassing DAT and possible | 20 | * This function writes to kernel memory bypassing DAT and possible |
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 1224db4a4055..4645fafa42c7 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
@@ -958,7 +958,7 @@ void page_table_free_rcu(struct mmu_gather *tlb, unsigned long *table) | |||
958 | tlb_remove_table(tlb, table); | 958 | tlb_remove_table(tlb, table); |
959 | } | 959 | } |
960 | 960 | ||
961 | void __tlb_remove_table(void *_table) | 961 | static void __tlb_remove_table(void *_table) |
962 | { | 962 | { |
963 | const unsigned long mask = (FRAG_MASK << 4) | FRAG_MASK; | 963 | const unsigned long mask = (FRAG_MASK << 4) | FRAG_MASK; |
964 | void *table = (void *)((unsigned long) _table & ~mask); | 964 | void *table = (void *)((unsigned long) _table & ~mask); |