Commit a930a896 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: remove dump_regs

From: Anton Blanchard <anton@samba.org>

There is a prototype for dump_regs on ppc32 and ppc64 but its never
defined.  Remove it since it conflicts with something in
drivers/atm/horizon.c.

Also clean up ppc64 system.h a bit to match the ppc32 version.
parent be758139
...@@ -95,8 +95,6 @@ extern struct task_struct *_switch(struct thread_struct *prev, ...@@ -95,8 +95,6 @@ extern struct task_struct *_switch(struct thread_struct *prev,
extern unsigned int rtas_data; extern unsigned int rtas_data;
extern void dump_regs(struct pt_regs *);
static __inline__ unsigned long static __inline__ unsigned long
xchg_u32(volatile void *p, unsigned long val) xchg_u32(volatile void *p, unsigned long val)
{ {
......
...@@ -53,6 +53,10 @@ ...@@ -53,6 +53,10 @@
#define smp_read_barrier_depends() do { } while(0) #define smp_read_barrier_depends() do { } while(0)
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#ifdef __KERNEL__
struct task_struct;
struct pt_regs;
#ifdef CONFIG_DEBUGGER #ifdef CONFIG_DEBUGGER
extern int (*__debugger)(struct pt_regs *regs); extern int (*__debugger)(struct pt_regs *regs);
...@@ -103,7 +107,6 @@ extern void cvt_fd(float *from, double *to, unsigned long *fpscr); ...@@ -103,7 +107,6 @@ extern void cvt_fd(float *from, double *to, unsigned long *fpscr);
extern void cvt_df(double *from, float *to, unsigned long *fpscr); extern void cvt_df(double *from, float *to, unsigned long *fpscr);
extern int abs(int); extern int abs(int);
struct task_struct;
extern struct task_struct *__switch_to(struct task_struct *, extern struct task_struct *__switch_to(struct task_struct *,
struct task_struct *); struct task_struct *);
#define switch_to(prev, next, last) ((last) = __switch_to((prev), (next))) #define switch_to(prev, next, last) ((last) = __switch_to((prev), (next)))
...@@ -112,9 +115,6 @@ struct thread_struct; ...@@ -112,9 +115,6 @@ struct thread_struct;
extern struct task_struct * _switch(struct thread_struct *prev, extern struct task_struct * _switch(struct thread_struct *prev,
struct thread_struct *next); struct thread_struct *next);
struct pt_regs;
extern void dump_regs(struct pt_regs *);
static inline int __is_processor(unsigned long pv) static inline int __is_processor(unsigned long pv)
{ {
unsigned long pvr; unsigned long pvr;
...@@ -265,4 +265,5 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) ...@@ -265,4 +265,5 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size)
(unsigned long)_n_, sizeof(*(ptr))); \ (unsigned long)_n_, sizeof(*(ptr))); \
}) })
#endif /* __KERNEL__ */
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment