diff options
-rw-r--r-- | arch/s390/lib/Makefile | 2 | ||||
-rw-r--r-- | arch/s390/lib/div64.c | 2 | ||||
-rw-r--r-- | lib/div64.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/lib/Makefile b/arch/s390/lib/Makefile index 7a44fed21b35..59aea65ce99f 100644 --- a/arch/s390/lib/Makefile +++ b/arch/s390/lib/Makefile | |||
@@ -5,6 +5,6 @@ | |||
5 | EXTRA_AFLAGS := -traditional | 5 | EXTRA_AFLAGS := -traditional |
6 | 6 | ||
7 | lib-y += delay.o string.o uaccess_std.o uaccess_pt.o qrnnd.o | 7 | lib-y += delay.o string.o uaccess_std.o uaccess_pt.o qrnnd.o |
8 | lib-$(CONFIG_32BIT) += div64.o | 8 | obj-$(CONFIG_32BIT) += div64.o |
9 | lib-$(CONFIG_64BIT) += uaccess_mvcos.o | 9 | lib-$(CONFIG_64BIT) += uaccess_mvcos.o |
10 | lib-$(CONFIG_SMP) += spinlock.o | 10 | lib-$(CONFIG_SMP) += spinlock.o |
diff --git a/arch/s390/lib/div64.c b/arch/s390/lib/div64.c index 0481f3424a13..a5f8300bf3ee 100644 --- a/arch/s390/lib/div64.c +++ b/arch/s390/lib/div64.c | |||
@@ -147,5 +147,3 @@ uint32_t __div64_32(uint64_t *n, uint32_t base) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | #endif /* MARCH_G5 */ | 149 | #endif /* MARCH_G5 */ |
150 | |||
151 | EXPORT_SYMBOL(__div64_32); | ||
diff --git a/lib/div64.c b/lib/div64.c index 74f0c8cb4031..b71cf93c529a 100644 --- a/lib/div64.c +++ b/lib/div64.c | |||
@@ -23,7 +23,7 @@ | |||
23 | /* Not needed on 64bit architectures */ | 23 | /* Not needed on 64bit architectures */ |
24 | #if BITS_PER_LONG == 32 | 24 | #if BITS_PER_LONG == 32 |
25 | 25 | ||
26 | uint32_t __div64_32(uint64_t *n, uint32_t base) | 26 | uint32_t __attribute__((weak)) __div64_32(uint64_t *n, uint32_t base) |
27 | { | 27 | { |
28 | uint64_t rem = *n; | 28 | uint64_t rem = *n; |
29 | uint64_t b = base; | 29 | uint64_t b = base; |