X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Fasm-compat.h;h=8e64be0cc47d3d0f7579445af6726a661f50a17b;hb=c35ca399e09828f3f6b40c0007a95a6582d90347;hp=8b133efc9f7916ef76228e0048091cd870551d5d;hpb=b0b7b8eac33dc0f58ce9e7b7a61cf6529ee0b38c;p=~andy%2Flinux diff --git a/include/asm-powerpc/asm-compat.h b/include/asm-powerpc/asm-compat.h index 8b133efc9f7..8e64be0cc47 100644 --- a/include/asm-powerpc/asm-compat.h +++ b/include/asm-powerpc/asm-compat.h @@ -1,7 +1,6 @@ #ifndef _ASM_POWERPC_ASM_COMPAT_H #define _ASM_POWERPC_ASM_COMPAT_H -#include #include #ifdef __ASSEMBLY__ @@ -41,6 +40,7 @@ #endif +#ifdef __KERNEL__ #ifdef CONFIG_IBM405_ERR77 /* Erratum #77 on the 405 means we need a sync or dcbt before every * stwcx. The old ATOMIC_SYNC_FIX covered some but not all of this. @@ -51,5 +51,6 @@ #define PPC405_ERR77(ra,rb) #define PPC405_ERR77_SYNC #endif +#endif #endif /* _ASM_POWERPC_ASM_COMPAT_H */