diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-03-16 21:00:25 +0100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-08-19 08:36:45 +0200 |
commit | 7eebdf0ee7c225ce3e4627e9e9effa9cd3d8bc95 (patch) | |
tree | 8d8a753fd72d9826c8128fb43ca58b5596c23271 /arch/mips | |
parent | 07524cea11744609a9ca5164f539702618e2379e (diff) | |
download | lwn-7eebdf0ee7c225ce3e4627e9e9effa9cd3d8bc95.tar.gz lwn-7eebdf0ee7c225ce3e4627e9e9effa9cd3d8bc95.zip |
ARM: realview: fix sparsemem build
commit dd94d3558947756b102b1487911acd925224a38c upstream.
Commit b713aa0b15 "ARM: fix asm/memory.h build error" broke some
configurations on mach-realview with sparsemem enabled, which
is missing a definition of PHYS_OFFSET:
arch/arm/include/asm/memory.h:268:42: error: 'PHYS_OFFSET' undeclared (first use in this function)
#define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
arch/arm/include/asm/dma-mapping.h:104:9: note: in expansion of macro 'PHYS_PFN_OFFSET'
return PHYS_PFN_OFFSET + dma_to_pfn(dev, *dev->dma_mask);
An easy workaround is for realview to define PHYS_OFFSET itself,
in the same way we define it for platforms that don't have a private
__virt_to_phys function.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions