Skip to content

Commit d9e3cb2

Browse files
bwhacksmattst88
authored andcommitted
alpha: math-emu: Fix modular build
Commit 00fc0e0 ("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: 00fc0e0 ("alpha: move exports to actual definitions") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Matt Turner <mattst88@gmail.com>
1 parent 873f9b5 commit d9e3cb2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/alpha/kernel/traps.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@ die_if_kernel(char * str, struct pt_regs *regs, long err, unsigned long *r9_15)
193193
static long dummy_emul(void) { return 0; }
194194
long (*alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask)
195195
= (void *)dummy_emul;
196+
EXPORT_SYMBOL_GPL(alpha_fp_emul_imprecise);
196197
long (*alpha_fp_emul) (unsigned long pc)
197198
= (void *)dummy_emul;
199+
EXPORT_SYMBOL_GPL(alpha_fp_emul);
198200
#else
199201
long alpha_fp_emul_imprecise(struct pt_regs *regs, unsigned long writemask);
200202
long alpha_fp_emul (unsigned long pc);

‎arch/alpha/math-emu/math.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ extern void alpha_write_fp_reg_s (unsigned long reg, unsigned long val);
5353
#ifdef MODULE
5454

5555
MODULE_DESCRIPTION("FP Software completion module");
56+
MODULE_LICENSE("GPL v2");
5657

5758
extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
5859
extern long (*alpha_fp_emul) (unsigned long pc);

0 commit comments

Comments
 (0)