]> 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)
commit01e70628ed4819f1e8597d225842b4ea81f0b01d
tree941d9f44888f3fd7549104ee05d31408d2e5f700
parent54a68c6ece0455e9021b42395583c4dc9ed96d60
powerpc/cell: Fix compilation with CONFIG_COREDUMP=n

Commit a7170abe8b4d "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