diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:17:13 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-10-30 10:16:46 -0400 |
| commit | 638ad34a8811119b32247b7722288ef8b90907d1 (patch) | |
| tree | 9153571e8de8f9247bb54f9baddb140fd5fa5684 | |
| parent | e54aafa0c3bef84bfd39b4c713942ae7cdcfc58a (diff) | |
[S390] sparse: fix sparse warnings about missing prototypes
Add prototypes and includes for functions used in different modules.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
| -rw-r--r-- | arch/s390/include/asm/page.h | 1 | ||||
| -rw-r--r-- | arch/s390/include/asm/processor.h | 2 | ||||
| -rw-r--r-- | arch/s390/include/asm/spinlock.h | 2 | ||||
| -rw-r--r-- | arch/s390/include/asm/system.h | 2 | ||||
| -rw-r--r-- | arch/s390/kernel/entry.h | 13 | ||||
| -rw-r--r-- | arch/s390/kernel/ipl.c | 1 | ||||
| -rw-r--r-- | arch/s390/kernel/process.c | 1 | ||||
| -rw-r--r-- | arch/s390/kernel/suspend.c | 1 | ||||
| -rw-r--r-- | arch/s390/kernel/time.c | 1 | ||||
| -rw-r--r-- | arch/s390/mm/mmap.c | 1 | ||||
| -rw-r--r-- | arch/s390/mm/pageattr.c | 1 | ||||
| -rw-r--r-- | drivers/s390/cio/css.h | 2 | ||||
| -rw-r--r-- | kernel/sysctl.c | 8 |
13 files changed, 26 insertions, 10 deletions
diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index accb372ddc7..f7ec548c2b9 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h | |||
| @@ -177,6 +177,7 @@ static inline int page_test_and_clear_young(unsigned long pfn) | |||
| 177 | struct page; | 177 | struct page; |
| 178 | void arch_free_page(struct page *page, int order); | 178 | void arch_free_page(struct page *page, int order); |
| 179 | void arch_alloc_page(struct page *page, int order); | 179 | void arch_alloc_page(struct page *page, int order); |
| 180 | void arch_set_page_states(int make_stable); | ||
| 180 | 181 | ||
| 181 | static inline int devmem_is_allowed(unsigned long pfn) | 182 | static inline int devmem_is_allowed(unsigned long pfn) |
| 182 | { | 183 | { |
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 20ffb12d4ae..5f33d37d032 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h | |||
| @@ -33,6 +33,8 @@ static inline void get_cpu_id(struct cpuid *ptr) | |||
| 33 | 33 | ||
| 34 | extern void s390_adjust_jiffies(void); | 34 | extern void s390_adjust_jiffies(void); |
| 35 | extern int get_cpu_capability(unsigned int *); | 35 | extern int get_cpu_capability(unsigned int *); |
| 36 | extern const struct seq_operations cpuinfo_op; | ||
| 37 | extern int sysctl_ieee_emulation_warnings; | ||
| 36 | 38 | ||
| 37 | /* | 39 | /* |
| 38 | * User space process size: 2GB for 31 bit, 4TB or 8PT for 64 bit. | 40 | * User space process size: 2GB for 31 bit, 4TB or 8PT for 64 bit. |
diff --git a/arch/s390/include/asm/spinlock.h b/arch/s390/include/asm/spinlock.h index 56612fc8186..fd94dfec8d0 100644 --- a/arch/s390/include/asm/spinlock.h +++ b/arch/s390/include/asm/spinlock.h | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | 13 | ||
| 14 | #include <linux/smp.h> | 14 | #include <linux/smp.h> |
| 15 | 15 | ||
| 16 | extern int spin_retry; | ||
| 17 | |||
| 16 | static inline int | 18 | static inline int |
| 17 | _raw_compare_and_swap(volatile unsigned int *lock, | 19 | _raw_compare_and_swap(volatile unsigned int *lock, |
| 18 | unsigned int old, unsigned int new) | 20 | unsigned int old, unsigned int new) |
diff --git a/arch/s390/include/asm/system.h b/arch/s390/include/asm/system.h index d73cc6b6000..ef573c1d71a 100644 --- a/arch/s390/include/asm/system.h +++ b/arch/s390/include/asm/system.h | |||
| @@ -20,6 +20,8 @@ | |||
| 20 | 20 | ||
| 21 | struct task_struct; | 21 | struct task_struct; |
| 22 | 22 | ||
| 23 | extern int sysctl_userprocess_debug; | ||
| 24 | |||
| 23 | extern struct task_struct *__switch_to(void *, void *); | 25 | extern struct task_struct *__switch_to(void *, void *); |
| 24 | extern void update_per_regs(struct task_struct *task); | 26 | extern void update_per_regs(struct task_struct *task); |
| 25 | 27 | ||
diff --git a/arch/s390/kernel/entry.h b/arch/s390/kernel/entry.h index 66729eb7bbc..ef8fb1d6e8d 100644 --- a/arch/s390/kernel/entry.h +++ b/arch/s390/kernel/entry.h | |||
| @@ -5,24 +5,33 @@ | |||
| 5 | #include <linux/signal.h> | 5 | #include <linux/signal.h> |
| 6 | #include <asm/ptrace.h> | 6 | #include <asm/ptrace.h> |
| 7 | 7 | ||
| 8 | |||
| 9 | extern void (*pgm_check_table[128])(struct pt_regs *, long, unsigned long); | ||
| 10 | extern void *restart_stack; | ||
| 11 | |||
| 12 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); | ||
| 13 | asmlinkage void do_syscall_trace_exit(struct pt_regs *regs); | ||
| 14 | |||
| 8 | void do_protection_exception(struct pt_regs *, long, unsigned long); | 15 | void do_protection_exception(struct pt_regs *, long, unsigned long); |
| 9 | void do_dat_exception(struct pt_regs *, long, unsigned long); | 16 | void do_dat_exception(struct pt_regs *, long, unsigned long); |
| 10 | void do_asce_exception(struct pt_regs *, long, unsigned long); | 17 | void do_asce_exception(struct pt_regs *, long, unsigned long); |
| 11 | 18 | ||
| 12 | extern int sysctl_userprocess_debug; | ||
| 13 | |||
| 14 | void do_per_trap(struct pt_regs *regs); | 19 | void do_per_trap(struct pt_regs *regs); |
| 15 | void syscall_trace(struct pt_regs *regs, int entryexit); | 20 | void syscall_trace(struct pt_regs *regs, int entryexit); |
| 16 | void kernel_stack_overflow(struct pt_regs * regs); | 21 | void kernel_stack_overflow(struct pt_regs * regs); |
| 17 | void do_signal(struct pt_regs *regs); | 22 | void do_signal(struct pt_regs *regs); |
| 18 | int handle_signal32(unsigned long sig, struct k_sigaction *ka, | 23 | int handle_signal32(unsigned long sig, struct k_sigaction *ka, |
| 19 | siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); | 24 | siginfo_t *info, sigset_t *oldset, struct pt_regs *regs); |
| 25 | void do_notify_resume(struct pt_regs *regs); | ||
| 20 | 26 | ||
| 21 | void do_extint(struct pt_regs *regs, unsigned int, unsigned int, unsigned long); | 27 | void do_extint(struct pt_regs *regs, unsigned int, unsigned int, unsigned long); |
| 28 | void do_restart(void); | ||
| 22 | int __cpuinit start_secondary(void *cpuvoid); | 29 | int __cpuinit start_secondary(void *cpuvoid); |
| 23 | void __init startup_init(void); | 30 | void __init startup_init(void); |
| 24 | void die(const char * str, struct pt_regs * regs, long err); | 31 | void die(const char * str, struct pt_regs * regs, long err); |
| 25 | 32 | ||
| 33 | void __init time_init(void); | ||
| 34 | |||
| 26 | struct s390_mmap_arg_struct; | 35 | struct s390_mmap_arg_struct; |
| 27 | struct fadvise64_64_args; | 36 | struct fadvise64_64_args; |
| 28 | struct old_sigaction; | 37 | struct old_sigaction; |
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 6296809c8e0..affa8e68124 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <asm/sclp.h> | 27 | #include <asm/sclp.h> |
| 28 | #include <asm/sigp.h> | 28 | #include <asm/sigp.h> |
| 29 | #include <asm/checksum.h> | 29 | #include <asm/checksum.h> |
| 30 | #include "entry.h" | ||
| 30 | 31 | ||
| 31 | #define IPL_PARM_BLOCK_VERSION 0 | 32 | #define IPL_PARM_BLOCK_VERSION 0 |
| 32 | 33 | ||
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index 5e64a9a29ea..9451b210a1b 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
| 13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
| 14 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
| 15 | #include <linux/elfcore.h> | ||
| 15 | #include <linux/smp.h> | 16 | #include <linux/smp.h> |
| 16 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
| 17 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
diff --git a/arch/s390/kernel/suspend.c b/arch/s390/kernel/suspend.c index b6f9afed74e..47df775c844 100644 --- a/arch/s390/kernel/suspend.c +++ b/arch/s390/kernel/suspend.c | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include <linux/pfn.h> | 9 | #include <linux/pfn.h> |
| 10 | #include <linux/suspend.h> | ||
| 10 | #include <linux/mm.h> | 11 | #include <linux/mm.h> |
| 11 | #include <asm/system.h> | 12 | #include <asm/system.h> |
| 12 | 13 | ||
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 8d65bd0383f..ebbfab3c6e5 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
| @@ -48,6 +48,7 @@ | |||
| 48 | #include <asm/timer.h> | 48 | #include <asm/timer.h> |
| 49 | #include <asm/etr.h> | 49 | #include <asm/etr.h> |
| 50 | #include <asm/cio.h> | 50 | #include <asm/cio.h> |
| 51 | #include "entry.h" | ||
| 51 | 52 | ||
| 52 | /* change this if you have some constant time drift */ | 53 | /* change this if you have some constant time drift */ |
| 53 | #define USECS_PER_JIFFY ((unsigned long) 1000000/HZ) | 54 | #define USECS_PER_JIFFY ((unsigned long) 1000000/HZ) |
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c index c9a9f7f1818..f09c74881b7 100644 --- a/arch/s390/mm/mmap.c +++ b/arch/s390/mm/mmap.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include <linux/personality.h> | 27 | #include <linux/personality.h> |
| 28 | #include <linux/mm.h> | 28 | #include <linux/mm.h> |
| 29 | #include <linux/mman.h> | ||
| 29 | #include <linux/module.h> | 30 | #include <linux/module.h> |
| 30 | #include <linux/random.h> | 31 | #include <linux/random.h> |
| 31 | #include <asm/pgalloc.h> | 32 | #include <asm/pgalloc.h> |
diff --git a/arch/s390/mm/pageattr.c b/arch/s390/mm/pageattr.c index d013ed39743..b36537a5f43 100644 --- a/arch/s390/mm/pageattr.c +++ b/arch/s390/mm/pageattr.c | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
| 6 | #include <linux/mm.h> | 6 | #include <linux/mm.h> |
| 7 | #include <linux/hugetlb.h> | 7 | #include <linux/hugetlb.h> |
| 8 | #include <asm/cacheflush.h> | ||
| 8 | #include <asm/pgtable.h> | 9 | #include <asm/pgtable.h> |
| 9 | 10 | ||
| 10 | static void change_page_attr(unsigned long addr, int numpages, | 11 | static void change_page_attr(unsigned long addr, int numpages, |
diff --git a/drivers/s390/cio/css.h b/drivers/s390/cio/css.h index 80ebdddf774..33bb4d891e1 100644 --- a/drivers/s390/cio/css.h +++ b/drivers/s390/cio/css.h | |||
| @@ -133,6 +133,8 @@ struct channel_subsystem { | |||
| 133 | 133 | ||
| 134 | extern struct channel_subsystem *channel_subsystems[]; | 134 | extern struct channel_subsystem *channel_subsystems[]; |
| 135 | 135 | ||
| 136 | void channel_subsystem_reinit(void); | ||
| 137 | |||
| 136 | /* Helper functions to build lists for the slow path. */ | 138 | /* Helper functions to build lists for the slow path. */ |
| 137 | void css_schedule_eval(struct subchannel_id schid); | 139 | void css_schedule_eval(struct subchannel_id schid); |
| 138 | void css_schedule_eval_all(void); | 140 | void css_schedule_eval_all(void); |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 2d2ecdcc8cd..2fe2bc2a57e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -151,14 +151,6 @@ extern int pwrsw_enabled; | |||
| 151 | extern int unaligned_enabled; | 151 | extern int unaligned_enabled; |
| 152 | #endif | 152 | #endif |
| 153 | 153 | ||
| 154 | #ifdef CONFIG_S390 | ||
| 155 | #ifdef CONFIG_MATHEMU | ||
| 156 | extern int sysctl_ieee_emulation_warnings; | ||
| 157 | #endif | ||
| 158 | extern int sysctl_userprocess_debug; | ||
| 159 | extern int spin_retry; | ||
| 160 | #endif | ||
| 161 | |||
| 162 | #ifdef CONFIG_IA64 | 154 | #ifdef CONFIG_IA64 |
| 163 | extern int no_unaligned_warning; | 155 | extern int no_unaligned_warning; |
| 164 | extern int unaligned_dump_stack; | 156 | extern int unaligned_dump_stack; |
