Remove umoddi3 and udivmoddi4
Subsystems (2)
cover Remove umoddi3 and udivmoddi4
These were only necessary for an out-of-tree driver that has since been fixed to use the proper divide routines.
PATCH 1/2 Revert "RISC-V: Select GENERIC_LIB_UMODDI3 on RV32"
I'm removing the generic 64-bit divide support, which means this will no longer work.
This reverts commit 757331db921428295948fed5e7377a436e66d34e.
Signed-off-by Palmer Dabbelt <[email protected]>
--- arch/riscv/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/riscv/Kconfig +0 -1
@@ -109,7 +109,6 @@ config ARCH_RV32I select GENERIC_LIB_ASHRDI3 select GENERIC_LIB_LSHRDI3 select GENERIC_LIB_UCMPDI2 - select GENERIC_LIB_UMODDI3 config ARCH_RV64I bool "RV64I"
Signature · 1 line
2.18.1
PATCH 2/2 Revert "lib: Add umoddi3 and udivmoddi4 of GCC library routines"
In reply to Palmer DabbeltWe don't want 64-bit divide in the kernel.
This reverts commit 6315730e9eab7de5fa9864bb13a352713f48aef1.
Signed-off-by Palmer Dabbelt <[email protected]>
--- lib/Kconfig | 3 - lib/Makefile | 1 - lib/udivmoddi4.c | 310 ----------------------------------------------- lib/umoddi3.c | 32 ----- 4 files changed, 346 deletions(-) delete mode 100644 lib/udivmoddi4.c delete mode 100644 lib/umoddi3.c
lib/Kconfig +0 -3
@@ -624,6 +624,3 @@ config GENERIC_LIB_CMPDI2 config GENERIC_LIB_UCMPDI2 bool - -config GENERIC_LIB_UMODDI3 - bool
lib/Makefile +0 -1
@@ -274,4 +274,3 @@ obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o -obj-$(CONFIG_GENERIC_LIB_UMODDI3) += umoddi3.o udivmoddi4.o
lib/udivmoddi4.c deleted +0 -310
310 lines not on this page · raw message
lib/umoddi3.c deleted +0 -32
@@ -1,32 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 - -/* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see the file COPYING, or write -* to the Free Software Foundation, Inc. -*/ - -#include <linux/module.h> -#include <linux/libgcc.h> - -extern unsigned long long __udivmoddi4 (unsigned long long u, -unsigned long long v, -unsigned long long *rp); - -unsigned long long __umoddi3 (unsigned long long u,unsigned long long v) -{ -unsigned long long w; - (void )__udivmoddi4 (u, v, &w); -return w; -} -EXPORT_SYMBOL (__umoddi3);
Signature · 1 line
2.18.1