aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/s390/kernel/entry.h18
-rw-r--r--arch/s390/kernel/ftrace.c1
-rw-r--r--arch/s390/kernel/irq.c2
-rw-r--r--arch/s390/kernel/machine_kexec.c2
-rw-r--r--arch/s390/kernel/smp.c2
-rw-r--r--arch/s390/kernel/suspend.c1
-rw-r--r--arch/s390/mm/maccess.c1
-rw-r--r--arch/s390/mm/pgtable.c2
-rw-r--r--drivers/s390/char/fs3270.c6
-rw-r--r--drivers/s390/char/tty3270.c6
10 files changed, 19 insertions, 22 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);
54void do_notify_resume(struct pt_regs *regs); 54void do_notify_resume(struct pt_regs *regs);
55 55
56struct ext_code; 56void __init init_IRQ(void);
57void do_extint(struct pt_regs *regs); 57void do_IRQ(struct pt_regs *regs, int irq);
58void do_restart(void); 58void do_restart(void);
59void __init startup_init(void); 59void __init startup_init(void);
60void die(struct pt_regs *regs, const char *str); 60void die(struct pt_regs *regs, const char *str);
61 61int setup_profiling_timer(unsigned int multiplier);
62void __init time_init(void); 62void __init time_init(void);
63int pfn_is_nosave(unsigned long);
64void s390_early_resume(void);
65unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
63 66
64struct s390_mmap_arg_struct; 67struct s390_mmap_arg_struct;
65struct fadvise64_64_args; 68struct fadvise64_64_args;
66struct old_sigaction; 69struct old_sigaction;
67 70
68long sys_mmap2(struct s390_mmap_arg_struct __user *arg);
69long sys_s390_ipc(uint call, int first, unsigned long second,
70 unsigned long third, void __user *ptr);
71long sys_s390_personality(unsigned int personality);
72long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
73 size_t len, int advice);
74long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
75long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
76 u32 len_low);
77long sys_sigreturn(void); 71long sys_sigreturn(void);
78long sys_rt_sigreturn(void); 72long sys_rt_sigreturn(void);
79long sys32_sigreturn(void); 73long 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 */
209DEFINE_SPINLOCK(ext_int_hash_lock); 209static DEFINE_SPINLOCK(ext_int_hash_lock);
210 210
211static inline int ext_hash(u16 code) 211static 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 */
53void setup_regs(void) 53static 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 */
365void smp_emergency_stop(cpumask_t *cpumask) 365static 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
961void __tlb_remove_table(void *_table) 961static 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);
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c
index 96e52bf75930..f93cc32eb818 100644
--- a/drivers/s390/char/fs3270.c
+++ b/drivers/s390/char/fs3270.c
@@ -524,20 +524,20 @@ static const struct file_operations fs3270_fops = {
524 .llseek = no_llseek, 524 .llseek = no_llseek,
525}; 525};
526 526
527void fs3270_create_cb(int minor) 527static void fs3270_create_cb(int minor)
528{ 528{
529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops); 529 __register_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub", &fs3270_fops);
530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor), 530 device_create(class3270, NULL, MKDEV(IBM_FS3270_MAJOR, minor),
531 NULL, "3270/tub%d", minor); 531 NULL, "3270/tub%d", minor);
532} 532}
533 533
534void fs3270_destroy_cb(int minor) 534static void fs3270_destroy_cb(int minor)
535{ 535{
536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor)); 536 device_destroy(class3270, MKDEV(IBM_FS3270_MAJOR, minor));
537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub"); 537 __unregister_chrdev(IBM_FS3270_MAJOR, minor, 1, "tub");
538} 538}
539 539
540struct raw3270_notifier fs3270_notifier = 540static struct raw3270_notifier fs3270_notifier =
541{ 541{
542 .create = fs3270_create_cb, 542 .create = fs3270_create_cb,
543 .destroy = fs3270_destroy_cb, 543 .destroy = fs3270_destroy_cb,
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c
index cee69dac3e18..a0f47c83fd62 100644
--- a/drivers/s390/char/tty3270.c
+++ b/drivers/s390/char/tty3270.c
@@ -1845,17 +1845,17 @@ static const struct tty_operations tty3270_ops = {
1845 .set_termios = tty3270_set_termios 1845 .set_termios = tty3270_set_termios
1846}; 1846};
1847 1847
1848void tty3270_create_cb(int minor) 1848static void tty3270_create_cb(int minor)
1849{ 1849{
1850 tty_register_device(tty3270_driver, minor - RAW3270_FIRSTMINOR, NULL); 1850 tty_register_device(tty3270_driver, minor - RAW3270_FIRSTMINOR, NULL);
1851} 1851}
1852 1852
1853void tty3270_destroy_cb(int minor) 1853static void tty3270_destroy_cb(int minor)
1854{ 1854{
1855 tty_unregister_device(tty3270_driver, minor - RAW3270_FIRSTMINOR); 1855 tty_unregister_device(tty3270_driver, minor - RAW3270_FIRSTMINOR);
1856} 1856}
1857 1857
1858struct raw3270_notifier tty3270_notifier = 1858static struct raw3270_notifier tty3270_notifier =
1859{ 1859{
1860 .create = tty3270_create_cb, 1860 .create = tty3270_create_cb,
1861 .destroy = tty3270_destroy_cb, 1861 .destroy = tty3270_destroy_cb,