]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: realview: fix sparsemem build
authorArnd Bergmann <arnd@arndb.de>
Sun, 16 Mar 2014 20:00:25 +0000 (21:00 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:26:11 +0000 (18:26 +0100)
commit4ebca90d5991864c27b7eceefa7f3af8e4cd643b
tree0c47613940de0030be53d548f54306413f84ca65
parentd3a381098e72084c0165ae6103598608d8c9be0d
ARM: realview: fix sparsemem build

Commit 615718eb8b "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>
arch/arm/mach-realview/include/mach/memory.h