]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit414f6bf1ce3c91ac0f643ec82a76871ba9d40817
tree7b5dc8e5b7b8e4f1b686f5a35850f4194d5c8201
parent09c3a9d1040b7736603e412a747e7d7b4b174cc3
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