arm64: Fix build with CONFIG_ZONE_DMA=n
authorRobin Murphy <robin.murphy@arm.com>
Tue, 27 Oct 2015 17:40:26 +0000 (17:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Oct 2015 16:58:00 +0000 (16:58 +0000)
commit86a5906e4d1df1ec160fa9e18b6f2277a5216c60
tree7b5dc8e5b7b8e4f1b686f5a35850f4194d5c8201
parent5accd17d0eb523350c9ef754d655e379c9bb93b3
arm64: Fix build with CONFIG_ZONE_DMA=n

Trying to build with CONFIG_ZONE_DMA=n leaves visible references
to the now-undefined ZONE_DMA, resulting in a syntax error.

Hide the references behind an #ifdef instead of using IS_ENABLED.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c