aboutsummaryrefslogtreecommitdiffstats
path: root/lib/umoddi3.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-10-31 19:20:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-31 19:20:28 -0400
commit3dca04d694f16cc74dc87de9a13547e2ffec81d7 (patch)
tree7853d982b1c726fdfd6434dfccbb1ff158b8411c /lib/umoddi3.c
parent9bb9d4fdce9e6b351b7b905f150745a0fccccc06 (diff)
parentef70696a63c773280ef46f5764a6cda39ef2f383 (diff)
Merge tag 'riscv-for-linus-4.20-mw2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux
Pull more RISC-V updates from Palmer Dabbelt: "This contains the follow-on patches I'd like to target for the 4.20 merge window. I'm being somewhat conservative here, as while there are a few patches on the mailing list that were posted early in the merge window I'd like to let those bake for another round -- this was a fairly big release as far as RISC-V is concerened, and we need to walk before we can run. As far as the patches that made it go: - A patch to ignore offline CPUs when calculating AT_HWCAP. This should fix GDB on the HiFive unleashed, which has an embedded core for hart 0 which is exposed to Linux as an offline CPU. - A move of EM_RISCV to elf-em.h, which is where it should have been to begin with. - I've also removed the 64-bit divide routines. I know I'm not really playing by my own rules here because I posted the patches this morning, but since they shouldn't be in the kernel I think it's better to err on the side of going too fast here. I don't anticipate any more patch sets for the merge window" * tag 'riscv-for-linus-4.20-mw2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux: Move EM_RISCV into elf-em.h RISC-V: properly determine hardware caps Revert "lib: Add umoddi3 and udivmoddi4 of GCC library routines" Revert "RISC-V: Select GENERIC_LIB_UMODDI3 on RV32"
Diffstat (limited to 'lib/umoddi3.c')
-rw-r--r--lib/umoddi3.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/umoddi3.c b/lib/umoddi3.c
deleted file mode 100644
index d7bbf0f85197..000000000000
--- a/lib/umoddi3.c
+++ /dev/null
@@ -1,32 +0,0 @@
1// SPDX-License-Identifier: GPL-2.0
2
3/*
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see the file COPYING, or write
16 * to the Free Software Foundation, Inc.
17 */
18
19#include <linux/module.h>
20#include <linux/libgcc.h>
21
22extern unsigned long long __udivmoddi4(unsigned long long u,
23 unsigned long long v,
24 unsigned long long *rp);
25
26unsigned long long __umoddi3(unsigned long long u, unsigned long long v)
27{
28 unsigned long long w;
29 (void)__udivmoddi4(u, v, &w);
30 return w;
31}
32EXPORT_SYMBOL(__umoddi3);