• Michael Ellerman's avatar
    powerpc/cell: Fix compilation with CONFIG_COREDUMP=n · e623fbf1
    Michael Ellerman authored
    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: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    e623fbf1
syscalls.c 2.13 KB