summaryrefslogtreecommitdiffstats
path: root/module/lua/lvm.c
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-17 16:02:34 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:21:46 -0700
commitc0673571d03a51d9ac014ecb8cbb7a6ca9dee384 (patch)
tree2b01ddaac134dc07cecdfb6324dc8b757961a860 /module/lua/lvm.c
parenteebba5d8f486fd069e9fccd9e653894a7d635cdd (diff)
Switch off -Wmissing-prototypes for libgcc math functions
spl-generic.c defines some of the libgcc integer library functions on 32-bit. Don't bother checking -Wmissing-prototypes since nothing should directly call these functions from C code. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'module/lua/lvm.c')
-rw-r--r--module/lua/lvm.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/module/lua/lvm.c b/module/lua/lvm.c
index bde1d30bc..4685be52b 100644
--- a/module/lua/lvm.c
+++ b/module/lua/lvm.c
@@ -929,32 +929,4 @@ void luaV_execute (lua_State *L) {
}
}
-/*
- * this can live in SPL
- */
-#if BITS_PER_LONG == 32
-#if defined(_KERNEL) && !defined(SPL_HAS_MODDI3)
-extern uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
-
-/* 64-bit signed modulo for 32-bit machines. */
-int64_t
-__moddi3(int64_t n, int64_t d)
-{
- int64_t q;
- boolean_t nn = B_FALSE;
-
- if (n < 0) {
- nn = B_TRUE;
- n = -n;
- }
- if (d < 0)
- d = -d;
-
- q = __umoddi3(n, d);
-
- return (nn ? -q : q);
-}
-EXPORT_SYMBOL(__moddi3);
-#endif
-#endif
/* END CSTYLED */