alpha: __udiv_qrnnd should be exported
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 8 Nov 2019 15:36:08 +0000 (15:36 +0000)
committerMatt Turner <mattst88@gmail.com>
Mon, 26 Jul 2021 03:55:40 +0000 (20:55 -0700)
When building an alpha kernel with mpi set as module, I hit this build
error:
ERROR: "__udiv_qrnnd" [lib/mpi/mpi.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
make[1]: *** [Makefile:1266: modules] Error 2

This is due to __udiv_qrnnd not exported.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/math-emu/math.c

index d568cd9a3e43a524044fd1e44f60183b6a75b4ef..5617ac0889b86b080a66a6a7b2c3a0e9226478da 100644 (file)
@@ -401,3 +401,5 @@ alpha_fp_emul_imprecise (struct pt_regs *regs, unsigned long write_mask)
 egress:
        return si_code;
 }
+
+EXPORT_SYMBOL(__udiv_qrnnd);