arm64: lse: remove -fcall-used-x0 flag
authorTri Vo <trong@android.com>
Wed, 19 Sep 2018 19:27:50 +0000 (12:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:15:12 +0000 (11:15 -0800)
commitad2c712b50597ab70cdf9c75101518a6837d0e69
tree775234036bdbfe9e1b1c9ce17f55190945555548
parentbaf1746da59e310f8e7d016090e2d447e867828a
arm64: lse: remove -fcall-used-x0 flag

commit 2a6c7c367de82951c98a290a21156770f6f82c84 upstream.

x0 is not callee-saved in the PCS. So there is no need to specify
-fcall-used-x0.

Clang doesn't currently support -fcall-used flags. This patch will help
building the kernel with clang.

Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Tri Vo <trong@android.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/lib/Makefile