[PATCH v2] arm/arm64: smccc: Fix CLANG compilation for arm64

Marc Zyngier marc.zyngier at arm.com
Fri Mar 23 01:52:01 PDT 2018


On 22/03/18 20:50, Isaac J. Manjarres wrote:
> When CLANG compiles inline assembly for 64 bit ARM
> architectures, it is unable to map register names,
> such as "r0" to the correct alias, such as "x0" for 64
> bit accesses, and "w0" for 32 bit accesses. While GCC
> can perform this mapping, CLANG can not, which results in
> compilation failures when building the kernel. Allow for
> differentiation of which register names to use, based on
> ARM architecture, to compile the kernel with CLANG.
> 
> Signed-off-by: Isaac J. Manjarres <isaacm at codeaurora.org>
Please see the other 2 threads on the list. There is a fix under way for
Clang, so I don't think there is a need for this hack.

If you're using Clang to compile the kernel, you're already carrying a
number of extra patches, so adding this one shouldn't be a big deal.
Once Clang gains feature parity with GCC, you'll be able to drop it.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...



More information about the linux-arm-kernel mailing list