Skip to content

Commit 2685f82

Browse files
committed
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 <[email protected]>
1 parent 5d176f7 commit 2685f82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/kernel/fadump.c

+2
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,9 @@ static ssize_t fadump_release_memory_store(struct kobject *kobj,
11081108
* Take away the '/proc/vmcore'. We are releasing the dump
11091109
* memory, hence it will not be valid anymore.
11101110
*/
1111+
#ifdef CONFIG_PROC_VMCORE
11111112
vmcore_cleanup();
1113+
#endif
11121114
fadump_invalidate_release_mem();
11131115

11141116
} else

0 commit comments

Comments
 (0)