ARM: kvm: implement replacement for ld's LOG2CEIL()
commite60a1fec44a2fe2c85ac406a5c1161ca2957a4fa
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 23 Mar 2015 10:52:57 +0000 (23 10:52 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 23 Mar 2015 11:16:50 +0000 (23 11:16 +0000)
tree9e26582a3000816875b3453c930f3895795065c0
parent06f75a1f6200042aa36ad40afb44dd72107b25d6
ARM: kvm: implement replacement for ld's LOG2CEIL()

Commit 06f75a1f6200 ("ARM, arm64: kvm: get rid of the bounce
page") uses ld's builtin function LOG2CEIL() to align the
KVM init code to a log2 upper bound of its size. However,
this function turns out to be a fairly recent addition to
binutils, which breaks the build for older toolchains.

So instead, implement a replacement LOG2_ROUNDUP() using
the C preprocessor.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/vmlinux.lds.S