]> Git Repo - linux.git/commit
fs/proc/vmcore.c: hide vmcoredd_mmap_dumps() for nommu builds
authorArnd Bergmann <[email protected]>
Fri, 24 Aug 2018 00:00:55 +0000 (17:00 -0700)
committerLinus Torvalds <[email protected]>
Fri, 24 Aug 2018 01:48:43 +0000 (18:48 -0700)
commita2036a1ef2ee91acab01a0ae4a534070691a42ec
tree44d1141f06486066e50ea0cf831ba48c187b5762
parent3cc97bea600372885923a1c270d82523411a4c70
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: 7efe48df8a3d ("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]>
fs/proc/vmcore.c
This page took 0.055092 seconds and 4 git commands to generate.