diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2017-07-18 20:02:04 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2017-09-04 15:04:34 -0400 |
commit | d9e3cb2f9ed91020b780ee662bdec692a3f276c9 (patch) | |
tree | 1a5bd7df0364b7fbbb0452b80376c496838e3656 | |
parent | 873f9b5bcbf27f6e89e1879714abe4532cacf5d7 (diff) |
alpha: math-emu: Fix modular build
Commit 00fc0e0dda62 ("alpha: move exports to actual definitions") also
removed the exports of the math emulator hooks, which are defined in C
code. In case anyone cares about the option of CONFIG_MATHEMU=m, add
exports next to those definitions. Also add a MODULE_LICENSE.
Fixes: 00fc0e0dda62 ("alpha: move exports to actual definitions")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | arch/alpha/kernel/traps.c | 2 | ||||
-rw-r--r-- | arch/alpha/math-emu/math.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c index 65bb102d985b..ddb89a18cf26 100644 --- a/arch/alpha/kernel/traps.c +++ b/arch/alpha/kernel/traps.c | |||
@@ -193,8 +193,10 @@ die_if_kernel(char * str, struct pt_regs *regs, long err, unsigned long *r9_15) | |||
193 | static long dummy_emul(void) { return 0; } | 193 | static long dummy_emul(void) { return 0; } |
194 | long (*alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask) | 194 | long (*alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask) |
195 | = (void *)dummy_emul; | 195 | = (void *)dummy_emul; |
196 | EXPORT_SYMBOL_GPL(alpha_fp_emul_imprecise); | ||
196 | long (*alpha_fp_emul) (unsigned long pc) | 197 | long (*alpha_fp_emul) (unsigned long pc) |
197 | = (void *)dummy_emul; | 198 | = (void *)dummy_emul; |
199 | EXPORT_SYMBOL_GPL(alpha_fp_emul); | ||
198 | #else | 200 | #else |
199 | long alpha_fp_emul_imprecise(struct pt_regs *regs, unsigned long writemask); | 201 | long alpha_fp_emul_imprecise(struct pt_regs *regs, unsigned long writemask); |
200 | long alpha_fp_emul (unsigned long pc); | 202 | long alpha_fp_emul (unsigned long pc); |
diff --git a/arch/alpha/math-emu/math.c b/arch/alpha/math-emu/math.c index d17d705f6545..1c2d456da7f2 100644 --- a/arch/alpha/math-emu/math.c +++ b/arch/alpha/math-emu/math.c | |||
@@ -53,6 +53,7 @@ extern void alpha_write_fp_reg_s (unsigned long reg, unsigned long val); | |||
53 | #ifdef MODULE | 53 | #ifdef MODULE |
54 | 54 | ||
55 | MODULE_DESCRIPTION("FP Software completion module"); | 55 | MODULE_DESCRIPTION("FP Software completion module"); |
56 | MODULE_LICENSE("GPL v2"); | ||
56 | 57 | ||
57 | extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long); | 58 | extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long); |
58 | extern long (*alpha_fp_emul) (unsigned long pc); | 59 | extern long (*alpha_fp_emul) (unsigned long pc); |