powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Sep 2016 00:51:46 +0000 (10:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:33:18 +0000 (20:33 +1100)
commit2685f826e5ffd1ab73b26fd5ac4e1f7048cb6ff6
treefb047e6651a7f0d32754c3d4a9a294c084a5a08b
parent5d176f751ee3c6eededd984ad409bff201f436a7
powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n

The fadump code calls vmcore_cleanup() which only exists if
CONFIG_PROC_VMCORE=y. We don't want to depend on CONFIG_PROC_VMCORE,
because it's user selectable, so just wrap the call in an #ifdef.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/fadump.c