diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-10-03 11:06:57 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-01-11 03:03:01 +0100 |
commit | 9c7417b5ec440242bb5b64521acd53d4e19130c1 (patch) | |
tree | df7559885a2b4709981f4c17fcee3917f187b1cc /init | |
parent | Linux 6.2-rc3 (diff) | |
download | linux-9c7417b5ec440242bb5b64521acd53d4e19130c1.tar.xz linux-9c7417b5ec440242bb5b64521acd53d4e19130c1.zip |
coredump: Move dump_emit_page() to kill unused warning
If CONFIG_ELF_CORE is not set:
fs/coredump.c:835:12: error: ‘dump_emit_page’ defined but not used [-Werror=unused-function]
835 | static int dump_emit_page(struct coredump_params *cprm, struct page *page)
| ^~~~~~~~~~~~~~
Fix this by moving dump_emit_page() inside the existing section
protected by #ifdef CONFIG_ELF_CORE.
Fixes: 06bbaa6dc53cb720 ("[coredump] don't use __kernel_write() on kmap_local_page()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions