From: Arnd Bergmann Date: Mon, 29 Apr 2013 15:06:10 +0000 (+0100) Subject: ARM: 7705/1: use optimized do_div only for EABI X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2~1^3~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049f3e84d34bfc37f25c91715f2e24a90fb8665e;p=pandora-kernel.git 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 Signed-off-by: Russell King --- Reading git-diff-tree failed