mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
fs/proc/vmcore.c: hide vmcoredd_mmap_dumps() for nommu builds
Without CONFIG_MMU, we get a build warning:
fs/proc/vmcore.c:228:12: error: 'vmcoredd_mmap_dumps' defined but not used [-Werror=unused-function]
static int vmcoredd_mmap_dumps(struct vm_area_struct *vma, unsigned long dst,
The function is only referenced from an #ifdef'ed caller, so
this uses the same #ifdef around it.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 7efe48df8a ("vmcore: append device dumps to vmcore as elf notes")
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Ganesh Goudar <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Rahul Lakkireddy <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3cc97bea60
commit
a2036a1ef2
1 changed files with 2 additions and 0 deletions
|
|
@ -225,6 +225,7 @@ out_unlock:
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MMU
|
||||
static int vmcoredd_mmap_dumps(struct vm_area_struct *vma, unsigned long dst,
|
||||
u64 start, size_t size)
|
||||
{
|
||||
|
|
@ -259,6 +260,7 @@ out_unlock:
|
|||
mutex_unlock(&vmcoredd_mutex);
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_MMU */
|
||||
#endif /* CONFIG_PROC_VMCORE_DEVICE_DUMP */
|
||||
|
||||
/* Read from the ELF header and then the crash dump. On error, negative value is
|
||||
|
|
|
|||
Loading…
Reference in a new issue