From: Paul M. <le...@li...> - 2007-03-28 06:48:22
|
On Mon, Mar 19, 2007 at 09:27:57AM +0100, Manuel Lauss wrote: > Hello, > > When I build linux with GCC-4.x and enable CONFIG_CC_OPTIMIZE_FOR_SIZE > linking fails with this error: > > LD .tmp_vmlinux1 > kernel/built-in.o: In function '__cmpxchg_called_with_bad_pointer' > make[1]: *** [.tmp_vmlinux1] Error 1 > make: *** [_all] Error 2 > This fixed it for me, can you verify? diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h index b1e42e7..4a6a19f 100644 --- a/include/asm-sh/system.h +++ b/include/asm-sh/system.h @@ -7,6 +7,7 @@ */ #include <linux/irqflags.h> +#include <linux/compiler.h> #include <asm/types.h> /* |