diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/sh_ksyms.c | 1 | ||||
-rw-r--r-- | arch/sh/lib/Makefile | 4 | ||||
-rw-r--r-- | arch/sh/lib/udivdi3.c | 16 |
3 files changed, 1 insertions, 20 deletions
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c index 6e0d10fac4a8..17f0b50c5678 100644 --- a/arch/sh/kernel/sh_ksyms.c +++ b/arch/sh/kernel/sh_ksyms.c | |||
@@ -65,7 +65,6 @@ EXPORT_SYMBOL(__div64_32); | |||
65 | 65 | ||
66 | /* These symbols are generated by the compiler itself */ | 66 | /* These symbols are generated by the compiler itself */ |
67 | DECLARE_EXPORT(__udivsi3); | 67 | DECLARE_EXPORT(__udivsi3); |
68 | DECLARE_EXPORT(__udivdi3); | ||
69 | DECLARE_EXPORT(__sdivsi3); | 68 | DECLARE_EXPORT(__sdivsi3); |
70 | DECLARE_EXPORT(__ashrdi3); | 69 | DECLARE_EXPORT(__ashrdi3); |
71 | DECLARE_EXPORT(__ashldi3); | 70 | DECLARE_EXPORT(__ashldi3); |
diff --git a/arch/sh/lib/Makefile b/arch/sh/lib/Makefile index 0b9cca5c7cb4..e23dd1a3fccd 100644 --- a/arch/sh/lib/Makefile +++ b/arch/sh/lib/Makefile | |||
@@ -3,11 +3,9 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | lib-y = delay.o memset.o memmove.o memchr.o \ | 5 | lib-y = delay.o memset.o memmove.o memchr.o \ |
6 | checksum.o strlen.o div64.o udivdi3.o \ | 6 | checksum.o strlen.o div64.o div64-generic.o |
7 | div64-generic.o | ||
8 | 7 | ||
9 | memcpy-y := memcpy.o | 8 | memcpy-y := memcpy.o |
10 | memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o | 9 | memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o |
11 | 10 | ||
12 | lib-y += $(memcpy-y) | 11 | lib-y += $(memcpy-y) |
13 | |||
diff --git a/arch/sh/lib/udivdi3.c b/arch/sh/lib/udivdi3.c deleted file mode 100644 index 68f038bf3c50..000000000000 --- a/arch/sh/lib/udivdi3.c +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* | ||
2 | * Simple __udivdi3 function which doesn't use FPU. | ||
3 | */ | ||
4 | |||
5 | #include <linux/types.h> | ||
6 | |||
7 | extern u64 __xdiv64_32(u64 n, u32 d); | ||
8 | extern void panic(const char * fmt, ...); | ||
9 | |||
10 | u64 __udivdi3(u64 n, u64 d) | ||
11 | { | ||
12 | if (d & ~0xffffffff) | ||
13 | panic("Need true 64-bit/64-bit division"); | ||
14 | return __xdiv64_32(n, (u32)d); | ||
15 | } | ||
16 | |||