ARM/keystone: move the DMA offset handling under ifdef CONFIG_ARM_LPAE
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Sep 2020 17:24:00 +0000 (19:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Sep 2020 16:43:24 +0000 (18:43 +0200)
commitcf141ae989e2ff119cd320326da5923b480d1641
tree1c6633132fc27bc040aee8d3edc8c9b196789d92
parent3799e402a4f0d69690e0838c4a68cab26d06283a
ARM/keystone: move the DMA offset handling under ifdef CONFIG_ARM_LPAE

The DMA offset notifier can only be used if PHYS_OFFSET is at least
KEYSTONE_HIGH_PHYS_START, which can't be represented by a 32-bit
phys_addr_t.  Currently the code compiles fine despite that, a pending
change to the DMA offset handling would create a compiler warning for
this case.  Add an ifdef to not compile the code except for LPAE
configs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/arm/mach-keystone/keystone.c