]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8221/1: PJ4: allow building in Thumb-2 mode
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 28 May 2015 23:31:28 +0000 (16:31 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 17:59:52 +0000 (13:59 -0400)
commit0096d0ccb701079017f2ad698d56b89838251724
tree18a28c8830c4ec5a5674c594b997e0348e5e28e4
parent48ab2783948137231b276b2173ca23dae759af78
ARM: 8221/1: PJ4: allow building in Thumb-2 mode

Two files that get included when building the multi_v7_defconfig target
fail to build when selecting THUMB2_KERNEL for this configuration.

In both cases, we can just build the file as ARM code, as none of its
symbols are exported to modules, so there are no interworking concerns.
In the iwmmxt.S case, add ENDPROC() declarations so the symbols are
annotated as functions, resulting in the linker to emit the appropriate
mode switches.

Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 13d1b9575ac2c2da143cd2236b6cf0fc314570f8)
Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm/kernel/Makefile
arch/arm/kernel/iwmmxt.S