diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-30 10:51:46 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-10-04 20:33:18 +1100 |
commit | 2685f826e5ffd1ab73b26fd5ac4e1f7048cb6ff6 (patch) | |
tree | fb047e6651a7f0d32754c3d4a9a294c084a5a08b /arch/powerpc | |
parent | 5d176f751ee3c6eededd984ad409bff201f436a7 (diff) | |
download | linux-stable-2685f826e5ffd1ab73b26fd5ac4e1f7048cb6ff6.tar.gz linux-stable-2685f826e5ffd1ab73b26fd5ac4e1f7048cb6ff6.tar.bz2 linux-stable-2685f826e5ffd1ab73b26fd5ac4e1f7048cb6ff6.zip |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/fadump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 624ddcf728e0..963918e0974a 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/powerpc/kernel/fadump.c @@ -1108,7 +1108,9 @@ static ssize_t fadump_release_memory_store(struct kobject *kobj, * Take away the '/proc/vmcore'. We are releasing the dump * memory, hence it will not be valid anymore. */ +#ifdef CONFIG_PROC_VMCORE vmcore_cleanup(); +#endif fadump_invalidate_release_mem(); } else |