add "ifndef __ASSEMBLER__" to fix build warnings Fix build failing of olpc_ofw.h Add ifndef __ASSEMBLER__ around the function declaration Signed-off-by: Dave Young --- arch/x86/include/asm/olpc_ofw.h | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.35.orig/arch/x86/include/asm/olpc_ofw.h 2010-06-12 09:57:52.000000000 +0800 +++ linux-2.6.35/arch/x86/include/asm/olpc_ofw.h 2010-06-12 10:15:58.480000349 +0800 @@ -26,7 +26,9 @@ void olpc_ofw_detect_range(void); #else +#ifndef __ASSEMBLER__ static inline void olpc_ofw_detect_range(void) { } +#endif #endif