linux-user: fix compile failure if !CONFIG_USE_GUEST_BASE
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Feb 2011 16:53:04 +0000 (16:53 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 3 Mar 2011 22:33:45 +0000 (23:33 +0100)
commit415ee1528b925c0a91b4b125d41d07c080a5029b
tree25aec0bb9c774e24a0d6a2c4a2bb86f79eb156bc
parentf329a42c06f0ccbae47fb95e4ceadb437de39aa3
linux-user: fix compile failure if !CONFIG_USE_GUEST_BASE

If CONFIG_USE_GUEST_BASE is not defined, gcc complains:
 linux-user/mmap.c:235: error: comparison of unsigned expression >= 0 is always true

because RESERVED_VA is #defined to 0. Since mmap_find_vma_reserved()
will never be called anyway if RESERVED_VA is always 0, fix this by
simply #ifdef'ing away the function and its callsite.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/mmap.c