arm: xen: mm: use __GPF_DMA32 for arm64
authorPeng Fan <peng.fan@nxp.com>
Mon, 16 Sep 2019 09:51:33 +0000 (09:51 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 2 Oct 2019 01:50:07 +0000 (18:50 -0700)
commitec066de1a567169c4737a5933218c329cedf52bd
treeb57ef9e45187890897c15885e13e144abe0f3233
parent04ccbdc390b14d8fdc4612abbf023ff49cdc5cd8
arm: xen: mm: use __GPF_DMA32 for arm64

arm64 shares some code under arch/arm/xen, including mm.c.
However ZONE_DMA is removed by commit
ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32").

So add a check if CONFIG_ZONE_DMA32 is enabled use __GFP_DMA32.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
arch/arm/xen/mm.c