]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Octeon: Workaround link failures with gcc-4.4.x 32-bits toolchains
authorFlorian Fainelli <florian@openwrt.org>
Wed, 28 Jul 2010 22:13:07 +0000 (00:13 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:25:39 +0000 (13:25 +0100)
commit42bd79818002f380591ccfa78da81dd8e230a5db
tree9cacc2300cf71e45e5a868ac561f5a1e66bef19c
parent434ace7ff4f551d9f468d9c1d00df0887f9a608e
MIPS: Octeon: Workaround link failures with gcc-4.4.x 32-bits toolchains

When building with a gcc-4.4.x toolchain that is configured to produce
32-bits executables by default, we will produce __lshrti3 in sched_clock()
which is never resolved so the kernel fails to link. Unconditionally use
the inline assembly version as suggested by David Daney, which works around
the issue.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1514/
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/csrc-octeon.c