On Wed, Oct 16, 2019 at 10:07 PM Rob Herring <r...@kernel.org> wrote:

> PHYS_OFFSET is not universally defined on all arches and using it prevents
> enabling COMPILE_TEST. PAGE_OFFSET and __pa() are always available, so use
> them to get the physical start of memory address.
>
> This should have probably used 'dma-ranges' to get the address, but we
> don't want to force a DT update to do that. At least in QEMU, the SMAP
> registers have no effect (or perhaps the only value that is handled is 0).
>
> Cc: Lorenzo Pieralisi <lorenzo.pieral...@arm.com>
> Cc: Andrew Murray <andrew.mur...@arm.com>
> Cc: Bjorn Helgaas <bhelg...@google.com>
> Signed-off-by: Rob Herring <r...@kernel.org>
> ---
> v2:
> - New patch to fix build failure on some arches.

Always wondered how to do this right, now I can fix other stuff!
Acked-by: Linus Walleij <linus.wall...@linaro.org>

Yours,
Linus Walleij

Reply via email to