projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d176f7
)
powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n
author
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 30 Sep 2016 00:51:46 +0000
(10:51 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:33:18 +0000
(20:33 +1100)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/fadump.c
b/arch/powerpc/kernel/fadump.c
index 624ddcf728e02ab031ffbb029d4bd78c6bf8e15b..963918e0974a91c9487ce373fd6787b5b2643bf5 100644
(file)
--- 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