From: Ard Biesheuvel Date: Mon, 23 Mar 2015 10:52:57 +0000 (+0000) Subject: ARM: kvm: implement replacement for ld's LOG2CEIL() X-Git-Tag: omap-for-v4.2/o2_dc~115^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60a1fec44a2fe2c85ac406a5c1161ca2957a4fa;p=pandora-kernel.git 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 Signed-off-by: Will Deacon --- Reading git-diff-tree failed