Skip to content

Commit 6c974e7

Browse files
geertuRussell King (Oracle)
authored andcommitted
ARM: 9118/1: div64: Remove always-true __div64_const32_is_OK() duplicate
Since commit cafa001 ("Raise the minimum required gcc version to 4.6"), the kernel can no longer be compiled using gcc-3. Hence __div64_const32_is_OK() is always true. Moreover, __div64_const32_is_OK() is defined in the same way in include/asm-generic/div64.h, so the ARM-specific definition can be removed regardless. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent c747ce4 commit 6c974e7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/arm/include/asm/div64.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ static inline uint32_t __div64_32(uint64_t *n, uint32_t base)
5252

5353
#else
5454

55-
/*
56-
* gcc versions earlier than 4.0 are simply too problematic for the
57-
* __div64_const32() code in asm-generic/div64.h. First there is
58-
* gcc PR 15089 that tend to trig on more complex constructs, spurious
59-
* .global __udivsi3 are inserted even if none of those symbols are
60-
* referenced in the generated code, and those gcc versions are not able
61-
* to do constant propagation on long long values anyway.
62-
*/
63-
64-
#define __div64_const32_is_OK (__GNUC__ >= 4)
65-
6655
static inline uint64_t __arch_xprod_64(uint64_t m, uint64_t n, bool bias)
6756
{
6857
unsigned long long res;

0 commit comments

Comments
 (0)