Skip to content

Commit

Permalink
[POWERPC] Compile fixes for arch/powerpc dcr code
Browse files Browse the repository at this point in the history
The new dcr code does not currently compile when configured for native
DCR access on ARCH=powerpc.  This patch fixes the problems.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
David Gibson authored and Paul Mackerras committed Feb 7, 2007
1 parent 4297c98 commit a2c7021
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions arch/ppc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions include/asm-powerpc/dcr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions include/asm-ppc/ibm4xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define __ASM_IBM4XX_H__

#include <asm/types.h>
#include <asm/dcr.h>

#ifdef CONFIG_40x

Expand Down
2 changes: 0 additions & 2 deletions include/asm-ppc/reg_booke.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit a2c7021

Please sign in to comment.