diff options
-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 | ||||
-rw-r--r-- | drivers/s390/char/fs3270.c | 6 | ||||
-rw-r--r-- | drivers/s390/char/tty3270.c | 6 |
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); |
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); |
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 | ||
527 | void fs3270_create_cb(int minor) | 527 | static 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 | ||
534 | void fs3270_destroy_cb(int minor) | 534 | static 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 | ||
540 | struct raw3270_notifier fs3270_notifier = | 540 | static 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 | ||
1848 | void tty3270_create_cb(int minor) | 1848 | static 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 | ||
1853 | void tty3270_destroy_cb(int minor) | 1853 | static 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 | ||
1858 | struct raw3270_notifier tty3270_notifier = | 1858 | static 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, |