Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ben Hutchings and committed by
Matt Turner
d9e3cb2f 873f9b5b

+3
+2
arch/alpha/kernel/traps.c
··· 193 193 static long dummy_emul(void) { return 0; } 194 194 long (*alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask) 195 195 = (void *)dummy_emul; 196 + EXPORT_SYMBOL_GPL(alpha_fp_emul_imprecise); 196 197 long (*alpha_fp_emul) (unsigned long pc) 197 198 = (void *)dummy_emul; 199 + EXPORT_SYMBOL_GPL(alpha_fp_emul); 198 200 #else 199 201 long alpha_fp_emul_imprecise(struct pt_regs *regs, unsigned long writemask); 200 202 long alpha_fp_emul (unsigned long pc);
+1
arch/alpha/math-emu/math.c
··· 53 53 #ifdef MODULE 54 54 55 55 MODULE_DESCRIPTION("FP Software completion module"); 56 + MODULE_LICENSE("GPL v2"); 56 57 57 58 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long); 58 59 extern long (*alpha_fp_emul) (unsigned long pc);