On Wed, Oct 16, 2019 at 10:07 PM Rob Herring <robh@xxxxxxxxxx> 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.pieralisi@xxxxxxx> > Cc: Andrew Murray <andrew.murray@xxxxxxx> > Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> > Signed-off-by: Rob Herring <robh@xxxxxxxxxx> > --- > 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.walleij@xxxxxxxxxx> Yours, Linus Walleij