[patch 1/2] ppc64 CONFIG_ALTIVEC=n build fix
akpm at osdl.org
akpm at osdl.org
Sun Jun 20 20:02:45 EST 2004
With CONFIG_ALTIVEC=n, flush_altivec_to_thread() has no implementation.
Signed-off-by: Andrew Morton <akpm at osdl.org>
---
25-power4-akpm/include/asm-ppc64/system.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletion(-)
diff -puN include/asm-ppc64/system.h~ppc64-build-fix include/asm-ppc64/system.h
--- 25-power4/include/asm-ppc64/system.h~ppc64-build-fix 2004-06-19 22:43:04.795360984 -0700
+++ 25-power4-akpm/include/asm-ppc64/system.h 2004-06-19 22:43:52.956039448 -0700
@@ -112,13 +112,21 @@ extern int _get_PVR(void);
extern void giveup_fpu(struct task_struct *);
extern void disable_kernel_fp(void);
extern void flush_fp_to_thread(struct task_struct *);
-extern void flush_altivec_to_thread(struct task_struct *);
extern void enable_kernel_fp(void);
extern void giveup_altivec(struct task_struct *);
extern void disable_kernel_altivec(void);
extern void enable_kernel_altivec(void);
extern void cvt_fd(float *from, double *to, unsigned long *fpscr);
extern void cvt_df(double *from, float *to, unsigned long *fpscr);
+
+#ifdef CONFIG_ALTIVEC
+extern void flush_altivec_to_thread(struct task_struct *);
+#else
+static inline void flush_altivec_to_thread(struct task_struct *t)
+{
+}
+#endif
+
extern int abs(int);
extern struct task_struct *__switch_to(struct task_struct *,
_
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list