Skip to contentSkip to conversation

Compile fixes for arch/powerpc dcr code

powerpc David Gibson 2 participants 2 messages Feb 6, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

Paulus, please apply.

The new dcr code does not currently compile when configured for native DCR access on ARCH=powerpc. This patch fixes the problems.

arch/powerpc/kernel/ppc_ksyms.c +1 -0
Index: working-2.6/arch/powerpc/kernel/ppc_ksyms.c
===================================================================
@@ -44,6 +44,7 @@
 #include <asm/btext.h>
 #include <asm/div64.h>
 #include <asm/signal.h>
+#include <asm/dcr.h>
 
 #ifdef  CONFIG_8xx
 #include <asm/commproc.h>
include/asm-powerpc/dcr.h +1 -0
Index: working-2.6/include/asm-powerpc/dcr.h
===================================================================
@@ -33,6 +33,7 @@
  * base from the device-tree
  */
 #ifdef CONFIG_PPC_MERGE
+struct device_node;
 extern unsigned int dcr_resource_start(struct device_node *np,
 				       unsigned int index);
 extern unsigned int dcr_resource_len(struct device_node *np,
include/asm-ppc/reg_booke.h +0 -2
Index: working-2.6/include/asm-ppc/reg_booke.h
===================================================================
@@ -9,8 +9,6 @@
 #ifndef __ASM_PPC_REG_BOOKE_H__
 #define __ASM_PPC_REG_BOOKE_H__
 
-#include <asm/dcr.h>
-
 #ifndef __ASSEMBLY__
 /* Performance Monitor Registers */
 #define mfpmr(rn)	({unsigned int rval; \
arch/ppc/kernel/ppc_ksyms.c +1 -0
Index: working-2.6/arch/ppc/kernel/ppc_ksyms.c
===================================================================
@@ -43,6 +43,7 @@
 #include <asm/div64.h>
 #include <asm/xmon.h>
 #include <asm/signal.h>
+#include <asm/dcr.h>
 
 #ifdef  CONFIG_8xx
 #include <asm/commproc.h>
include/asm-ppc/ibm4xx.h +1 -0
Index: working-2.6/include/asm-ppc/ibm4xx.h
===================================================================
@@ -15,6 +15,7 @@
 #define __ASM_IBM4XX_H__
 
 #include <asm/types.h>
+#include <asm/dcr.h>
 
 #ifdef CONFIG_40x
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#1 lore raw
Quoted 6 lines · David Gibson

Paulus, please apply.

The new dcr code does not currently compile when configured for native DCR access on ARCH=powerpc. This patch fixes the problems.

Quoted 64 lines

Index: working-2.6/arch/powerpc/kernel/ppc_ksyms.c
===================================================================

arch/powerpc/kernel/ppc_ksyms.c +1 -0
@@ -44,6 +44,7 @@
 #include <asm/btext.h>
 #include <asm/div64.h>
 #include <asm/signal.h>
+#include <asm/dcr.h>
 
 #ifdef  CONFIG_8xx
 #include <asm/commproc.h>

Index: working-2.6/include/asm-powerpc/dcr.h
===================================================================

include/asm-powerpc/dcr.h +1 -0
@@ -33,6 +33,7 @@
  * base from the device-tree
  */
 #ifdef CONFIG_PPC_MERGE
+struct device_node;
 extern unsigned int dcr_resource_start(struct device_node *np,
 				       unsigned int index);
 extern unsigned int dcr_resource_len(struct device_node *np,

Index: working-2.6/include/asm-ppc/reg_booke.h
===================================================================

include/asm-ppc/reg_booke.h +0 -2
@@ -9,8 +9,6 @@
 #ifndef __ASM_PPC_REG_BOOKE_H__
 #define __ASM_PPC_REG_BOOKE_H__
 
-#include <asm/dcr.h>
-
 #ifndef __ASSEMBLY__
 /* Performance Monitor Registers */
 #define mfpmr(rn)	({unsigned int rval; \

Index: working-2.6/arch/ppc/kernel/ppc_ksyms.c
===================================================================

arch/ppc/kernel/ppc_ksyms.c +1 -0
@@ -43,6 +43,7 @@
 #include <asm/div64.h>
 #include <asm/xmon.h>
 #include <asm/signal.h>
+#include <asm/dcr.h>
 
 #ifdef  CONFIG_8xx
 #include <asm/commproc.h>

Index: working-2.6/include/asm-ppc/ibm4xx.h
===================================================================

include/asm-ppc/ibm4xx.h +1 -0
@@ -15,6 +15,7 @@
 #define __ASM_IBM4XX_H__
 
 #include <asm/types.h>
+#include <asm/dcr.h>
 
 #ifdef CONFIG_40x