aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-01-12 13:30:03 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-08-07 23:47:20 -0400
commit711f5df7bf3ae7657e15edf76d671042c051ce95 (patch)
tree98401da88c9c12be546a259b70719a1740ee5027
parentd13ffb5630443e6112df0263969cbdfc8ab9ab57 (diff)
s390: move exports to definitions
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/s390/include/asm/Kbuild1
-rw-r--r--arch/s390/kernel/Makefile2
-rw-r--r--arch/s390/kernel/entry.S6
-rw-r--r--arch/s390/kernel/mcount.S3
-rw-r--r--arch/s390/kernel/s390_ksyms.c15
-rw-r--r--arch/s390/lib/mem.S3
6 files changed, 14 insertions, 16 deletions
diff --git a/arch/s390/include/asm/Kbuild b/arch/s390/include/asm/Kbuild
index 9043d2e1e2ae..20f196b82a6e 100644
--- a/arch/s390/include/asm/Kbuild
+++ b/arch/s390/include/asm/Kbuild
@@ -1,6 +1,7 @@
1 1
2 2
3generic-y += clkdev.h 3generic-y += clkdev.h
4generic-y += export.h
4generic-y += irq_work.h 5generic-y += irq_work.h
5generic-y += mcs_spinlock.h 6generic-y += mcs_spinlock.h
6generic-y += mm-arch-hooks.h 7generic-y += mm-arch-hooks.h
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile
index 3234817c7d47..e2a63f0c6e3e 100644
--- a/arch/s390/kernel/Makefile
+++ b/arch/s390/kernel/Makefile
@@ -58,7 +58,7 @@ obj-y += entry.o reipl.o relocate_kernel.o
58 58
59extra-y += head.o head64.o vmlinux.lds 59extra-y += head.o head64.o vmlinux.lds
60 60
61obj-$(CONFIG_MODULES) += s390_ksyms.o module.o 61obj-$(CONFIG_MODULES) += module.o
62obj-$(CONFIG_SMP) += smp.o 62obj-$(CONFIG_SMP) += smp.o
63obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o 63obj-$(CONFIG_SCHED_TOPOLOGY) += topology.o
64obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o 64obj-$(CONFIG_HIBERNATION) += suspend.o swsusp.o
diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S
index c51650a1ed16..49a30737adde 100644
--- a/arch/s390/kernel/entry.S
+++ b/arch/s390/kernel/entry.S
@@ -23,6 +23,7 @@
23#include <asm/vx-insn.h> 23#include <asm/vx-insn.h>
24#include <asm/setup.h> 24#include <asm/setup.h>
25#include <asm/nmi.h> 25#include <asm/nmi.h>
26#include <asm/export.h>
26 27
27__PT_R0 = __PT_GPRS 28__PT_R0 = __PT_GPRS
28__PT_R1 = __PT_GPRS + 8 29__PT_R1 = __PT_GPRS + 8
@@ -259,6 +260,8 @@ sie_exit:
259 260
260 EX_TABLE(.Lrewind_pad,.Lsie_fault) 261 EX_TABLE(.Lrewind_pad,.Lsie_fault)
261 EX_TABLE(sie_exit,.Lsie_fault) 262 EX_TABLE(sie_exit,.Lsie_fault)
263EXPORT_SYMBOL(sie64a)
264EXPORT_SYMBOL(sie_exit)
262#endif 265#endif
263 266
264/* 267/*
@@ -825,6 +828,9 @@ ENTRY(save_fpu_regs)
825 oi __LC_CPU_FLAGS+7,_CIF_FPU 828 oi __LC_CPU_FLAGS+7,_CIF_FPU
826 br %r14 829 br %r14
827.Lsave_fpu_regs_end: 830.Lsave_fpu_regs_end:
831#if IS_ENABLED(CONFIG_KVM)
832EXPORT_SYMBOL(save_fpu_regs)
833#endif
828 834
829/* 835/*
830 * Load floating-point controls and floating-point or vector registers. 836 * Load floating-point controls and floating-point or vector registers.
diff --git a/arch/s390/kernel/mcount.S b/arch/s390/kernel/mcount.S
index e499370fbccb..9a17e4475d27 100644
--- a/arch/s390/kernel/mcount.S
+++ b/arch/s390/kernel/mcount.S
@@ -9,6 +9,7 @@
9#include <asm/asm-offsets.h> 9#include <asm/asm-offsets.h>
10#include <asm/ftrace.h> 10#include <asm/ftrace.h>
11#include <asm/ptrace.h> 11#include <asm/ptrace.h>
12#include <asm/export.h>
12 13
13 .section .kprobes.text, "ax" 14 .section .kprobes.text, "ax"
14 15
@@ -23,6 +24,8 @@ ENTRY(ftrace_stub)
23ENTRY(_mcount) 24ENTRY(_mcount)
24 br %r14 25 br %r14
25 26
27EXPORT_SYMBOL(_mcount)
28
26ENTRY(ftrace_caller) 29ENTRY(ftrace_caller)
27 .globl ftrace_regs_caller 30 .globl ftrace_regs_caller
28 .set ftrace_regs_caller,ftrace_caller 31 .set ftrace_regs_caller,ftrace_caller
diff --git a/arch/s390/kernel/s390_ksyms.c b/arch/s390/kernel/s390_ksyms.c
deleted file mode 100644
index e67453b73c3c..000000000000
--- a/arch/s390/kernel/s390_ksyms.c
+++ /dev/null
@@ -1,15 +0,0 @@
1#include <linux/module.h>
2#include <linux/kvm_host.h>
3#include <asm/fpu/api.h>
4#include <asm/ftrace.h>
5
6#ifdef CONFIG_FUNCTION_TRACER
7EXPORT_SYMBOL(_mcount);
8#endif
9#if IS_ENABLED(CONFIG_KVM)
10EXPORT_SYMBOL(sie64a);
11EXPORT_SYMBOL(sie_exit);
12EXPORT_SYMBOL(save_fpu_regs);
13#endif
14EXPORT_SYMBOL(memcpy);
15EXPORT_SYMBOL(memset);
diff --git a/arch/s390/lib/mem.S b/arch/s390/lib/mem.S
index c6d553e85ab1..be9fa65bfac4 100644
--- a/arch/s390/lib/mem.S
+++ b/arch/s390/lib/mem.S
@@ -5,6 +5,7 @@
5 */ 5 */
6 6
7#include <linux/linkage.h> 7#include <linux/linkage.h>
8#include <asm/export.h>
8 9
9/* 10/*
10 * memset implementation 11 * memset implementation
@@ -60,6 +61,7 @@ ENTRY(memset)
60 xc 0(1,%r1),0(%r1) 61 xc 0(1,%r1),0(%r1)
61.Lmemset_mvc: 62.Lmemset_mvc:
62 mvc 1(1,%r1),0(%r1) 63 mvc 1(1,%r1),0(%r1)
64EXPORT_SYMBOL(memset)
63 65
64/* 66/*
65 * memcpy implementation 67 * memcpy implementation
@@ -86,3 +88,4 @@ ENTRY(memcpy)
86 j .Lmemcpy_rest 88 j .Lmemcpy_rest
87.Lmemcpy_mvc: 89.Lmemcpy_mvc:
88 mvc 0(1,%r1),0(%r3) 90 mvc 0(1,%r1),0(%r3)
91EXPORT_SYMBOL(memcpy)