Skip to contentSkip to conversation

Remove umoddi3 and udivmoddi4

PATCH New Palmer Dabbelt 1 participant 3 messages Oct 29, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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.

---
 arch/riscv/Kconfig | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/Kconfig +0 -1
index fe451348ae57..4198759f6798 100644
@@ -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
#2 lore raw

PATCH 2/2 Revert "lib: Add umoddi3 and udivmoddi4 of GCC library routines"

In reply to Palmer Dabbelt

We don't want 64-bit divide in the kernel.

This reverts commit 6315730e9eab7de5fa9864bb13a352713f48aef1.

---
 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
index d1573a16aa92..a9965f4af4dd 100644
@@ -624,6 +624,3 @@ config GENERIC_LIB_CMPDI2
 
 config GENERIC_LIB_UCMPDI2
 	bool
-
-config GENERIC_LIB_UMODDI3
-	bool
lib/Makefile +0 -1
index 988949c4fd3a..db06d1237898 100644
@@ -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
deleted file mode 100644
index d7bbf0f85197..000000000000
@@ -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