]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fixup __cmpxchg() compile breakage with gcc4.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 28 Mar 2007 08:26:19 +0000 (17:26 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 28 Mar 2007 08:26:19 +0000 (17:26 +0900)
commitc0be719715f962505538795f3d656f3ede2e489a
tree8cae6e5c394828941959f8b0777ff3a6f06abd01
parent52f98b9afab6f7442cda0ee907e39b90ae61444e
sh: Fixup __cmpxchg() compile breakage with gcc4.

As reported by Manuel:

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 ended up being an inlining problem, fixed by explicitly
including linux/compiler.h and grabbing the definitions from there.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/system.h