]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cell: Fix compilation with CONFIG_COREDUMP=n
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Jul 2014 06:00:09 +0000 (16:00 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Jul 2014 02:55:05 +0000 (12:55 +1000)
commit62f7b1253575a3c864df740b63e1ec12ee6e5384
tree941d9f44888f3fd7549104ee05d31408d2e5f700
parentfae18b8e3b90a7bcbbf87617a233d57516c9ba1d
powerpc/cell: Fix compilation with CONFIG_COREDUMP=n

Commit 6fc04b639bb4 "coredump: make core dump functionality optional"
made the coredump optional, but didn't update the spufs code that
depends on it. That leads to build errors such as:

  arch/powerpc/platforms/built-in.o: In function `.spufs_arch_write_note':
  coredump.c:(.text+0x22cd4): undefined reference to `.dump_emit'
  coredump.c:(.text+0x22cf4): undefined reference to `.dump_emit'
  coredump.c:(.text+0x22d0c): undefined reference to `.dump_align'
  coredump.c:(.text+0x22d48): undefined reference to `.dump_emit'
  coredump.c:(.text+0x22e7c): undefined reference to `.dump_skip'

Fix it by adding some ifdefs in the cell code.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/spu_syscalls.c
arch/powerpc/platforms/cell/spufs/Makefile
arch/powerpc/platforms/cell/spufs/syscalls.c