From: Greg Kroah-Hartman Date: Mon, 10 Aug 2015 20:32:30 +0000 (-0700) Subject: 3.10-stable patches X-Git-Tag: v3.10.87~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ecae70352dea45936db9c8e046d86f0df22fda3;p=thirdparty%2Fkernel%2Fstable-queue.git 3.10-stable patches added patches: arm-realview-fix-sparsemem-build.patch --- diff --git a/queue-3.10/arm-realview-fix-sparsemem-build.patch b/queue-3.10/arm-realview-fix-sparsemem-build.patch new file mode 100644 index 00000000000..d6aff12f498 --- /dev/null +++ b/queue-3.10/arm-realview-fix-sparsemem-build.patch @@ -0,0 +1,43 @@ +From dd94d3558947756b102b1487911acd925224a38c Mon Sep 17 00:00:00 2001 +From: Arnd Bergmann +Date: Sun, 16 Mar 2014 21:00:25 +0100 +Subject: ARM: realview: fix sparsemem build + +From: Arnd Bergmann + +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 +Cc: Russell King +Cc: Linus Walleij +Cc: Guenter Roeck +Signed-off-by: Greg Kroah-Hartman + +--- + arch/arm/mach-realview/include/mach/memory.h | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/arch/arm/mach-realview/include/mach/memory.h ++++ b/arch/arm/mach-realview/include/mach/memory.h +@@ -56,6 +56,8 @@ + #define PAGE_OFFSET1 (PAGE_OFFSET + 0x10000000) + #define PAGE_OFFSET2 (PAGE_OFFSET + 0x30000000) + ++#define PHYS_OFFSET PLAT_PHYS_OFFSET ++ + #define __phys_to_virt(phys) \ + ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 : \ + (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 : \ diff --git a/queue-3.10/series b/queue-3.10/series new file mode 100644 index 00000000000..3048ff63eca --- /dev/null +++ b/queue-3.10/series @@ -0,0 +1 @@ +arm-realview-fix-sparsemem-build.patch diff --git a/queue-3.14/series b/queue-3.14/series new file mode 100644 index 00000000000..3048ff63eca --- /dev/null +++ b/queue-3.14/series @@ -0,0 +1 @@ +arm-realview-fix-sparsemem-build.patch