ARM: 7705/1: use optimized do_div only for EABI
authorArnd Bergmann <arnd@arndb.de>
Mon, 29 Apr 2013 15:06:10 +0000 (16:06 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 May 2013 18:35:53 +0000 (19:35 +0100)
commit049f3e84d34bfc37f25c91715f2e24a90fb8665e
tree574e09c5100c0e7ef651f7d277f9deb6ca0ef98f
parent9394c1c65e61eb6f4c1c99f342b49e451ec337b6
ARM: 7705/1: use optimized do_div only for EABI

In OABI configurations, some uses of the do_div function
cause gcc to run out of registers. To work around that,
we can force the use of the out-of-line version for
configurations that build a OABI kernel.

Without this patch, building netx_defconfig results in:

net/core/pktgen.c: In function 'pktgen_if_show':
net/core/pktgen.c:682:2775: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
net/core/pktgen.c:682:3153: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
net/core/pktgen.c:682:2775: error: 'asm' operand has impossible constraints
net/core/pktgen.c:682:3153: error: 'asm' operand has impossible constraints

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/div64.h