abs()/ppc build breakage fix
PATCH 1/1 abs()/ppc build breakage fix
(Fix against current 2.6.7-bk)
include/linux/kernel.h now has abs() as a preprocessor macro. This breaks some of the ppc build, as other headers define abs() as a function. This patch fixes it for me.
-dte
arch/ppc/kernel/ppc_ksyms.c +0 -3
@@ -68,7 +68,6 @@long long __ashrdi3 (long long ,int );long long __ashldi3 (long long ,int );long long __lshrdi3 (long long ,int ); -int abs (int );extern unsigned long mm_ptov (unsigned long paddr);
@@ -275,8 +274,6 @@EXPORT_SYMBOL (memscan);EXPORT_SYMBOL (memcmp);EXPORT_SYMBOL (memchr); - -EXPORT_SYMBOL (abs);#if defined(CONFIG_FB_VGA16_MODULE )EXPORT_SYMBOL (screen_info);
include/asm-ppc/system.h +0 -1
@@ -82,7 +82,6 @@extern void cvt_fd (float *from,double *to,unsigned long *fpscr);extern void cvt_df (double *from,float *to,unsigned long *fpscr);extern int call_rtas (const char *,int ,int ,unsigned long *, ...); -extern int abs (int );extern void cacheable_memzero (void *p,unsigned int nb);extern int do_page_fault (struct pt_regs *,unsigned long ,unsigned long );extern void bad_page_fault (struct pt_regs *,unsigned long ,int );