On Wed, Oct 16, 2019 at 10:07 PM Rob Herring <[email protected]> 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 <[email protected]> > Cc: Andrew Murray <[email protected]> > Cc: Bjorn Helgaas <[email protected]> > Signed-off-by: Rob Herring <[email protected]> > --- > 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 <[email protected]> Yours, Linus Walleij
