powerpc/cell: Fix compilation with CONFIG_COREDUMP=n
Commit 046d662f "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>
Showing
- arch/powerpc/platforms/cell/spu_syscalls.c 2 additions, 0 deletionsarch/powerpc/platforms/cell/spu_syscalls.c
- arch/powerpc/platforms/cell/spufs/Makefile 2 additions, 1 deletionarch/powerpc/platforms/cell/spufs/Makefile
- arch/powerpc/platforms/cell/spufs/syscalls.c 4 additions, 2 deletionsarch/powerpc/platforms/cell/spufs/syscalls.c
Loading
Please register or sign in to comment