Skip to contentSkip to conversation

powerpc/85xx: Fix compile issue with p1022_ds due to lmb rename to memblock

PATCH Applied Kumar Gala 1 participant 2 messages Aug 31, 2010

Subsystems (2)
lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Fix compile issue with p1022_ds due to lmb rename to memblock

arch/powerpc/platforms/85xx/p1022_ds.c:22:23: error: linux/lmb.h: No such file or directory arch/powerpc/platforms/85xx/p1022_ds.c: In function 'p1022_ds_setup_arch':
arch/powerpc/platforms/85xx/p1022_ds.c:100: error: implicit declaration of function 'memblock_end_of_DRAM' arch/powerpc/platforms/85xx/p1022_ds.c: At top level:
arch/powerpc/platforms/85xx/p1022_ds.c:147: error: 'udbg_progress' undeclared here (not in a function) make[2]: *** [arch/powerpc/platforms/85xx/p1022_ds.o] Error 1

---
 arch/powerpc/platforms/85xx/p1022_ds.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/85xx/p1022_ds.c +2 -2
index e1467c9..34e0090 100644
@@ -19,7 +19,7 @@
 
 #include <linux/pci.h>
 #include <linux/of_platform.h>
-#include <linux/lmb.h>
+#include <linux/memblock.h>
 
 #include <asm/mpic.h>
 #include <asm/swiotlb.h>
@@ -97,7 +97,7 @@ static void __init p1022_ds_setup_arch(void)
 #endif
 
 #ifdef CONFIG_SWIOTLB
-	if (lmb_end_of_DRAM() > max) {
+	if (memblock_end_of_DRAM() > max) {
 		ppc_swiotlb_enable = 1;
 		set_pci_dma_ops(&swiotlb_dma_ops);
 		ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb;
Signature · 1 line
1.6.0.6
author Applied
#1 lore raw
Quoted 1 line · Kumar Gala

arch/powerpc/platforms/85xx/p1022_ds.c:22:23: error: linux/lmb.h: No =

such file or directory

Quoted 1 line

arch/powerpc/platforms/85xx/p1022_ds.c: In function =

'p1022_ds_setup_arch':

Quoted 1 line

arch/powerpc/platforms/85xx/p1022_ds.c:100: error: implicit =

declaration of function 'memblock_end_of_DRAM'

Quoted 2 lines

arch/powerpc/platforms/85xx/p1022_ds.c: At top level:
arch/powerpc/platforms/85xx/p1022_ds.c:147: error: 'udbg_progress' =

undeclared here (not in a function)

Quoted 6 lines

make[2]: *** [arch/powerpc/platforms/85xx/p1022_ds.o] Error 1 =20

---
arch/powerpc/platforms/85xx/p1022_ds.c | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)

applied to merge

- k=