]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
alpha: math-emu: Fix modular build
authorBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jul 2017 00:02:04 +0000 (01:02 +0100)
committerMatt Turner <mattst88@gmail.com>
Mon, 4 Sep 2017 19:04:34 +0000 (12:04 -0700)
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>
arch/alpha/kernel/traps.c
arch/alpha/math-emu/math.c

index 65bb102d985bb05141b0f294bbd7e2bbfb0ac6ae..ddb89a18cf26f76cafc174172adc068bbe9e919e 100644 (file)
@@ -193,8 +193,10 @@ die_if_kernel(char * str, struct pt_regs *regs, long err, unsigned long *r9_15)
 static long dummy_emul(void) { return 0; }
 long (*alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask)
   = (void *)dummy_emul;
+EXPORT_SYMBOL_GPL(alpha_fp_emul_imprecise);
 long (*alpha_fp_emul) (unsigned long pc)
   = (void *)dummy_emul;
+EXPORT_SYMBOL_GPL(alpha_fp_emul);
 #else
 long alpha_fp_emul_imprecise(struct pt_regs *regs, unsigned long writemask);
 long alpha_fp_emul (unsigned long pc);
index d17d705f65453c6306067fabdc4e751358faa37e..1c2d456da7f2258de6eafa4f69ecc7fbfcf3f98e 100644 (file)
@@ -53,6 +53,7 @@ extern void alpha_write_fp_reg_s (unsigned long reg, unsigned long val);
 #ifdef MODULE
 
 MODULE_DESCRIPTION("FP Software completion module");
+MODULE_LICENSE("GPL v2");
 
 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
 extern long (*alpha_fp_emul) (unsigned long pc);