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-10 21:03:01 -0500 |
commit | 9c7417b5ec440242bb5b64521acd53d4e19130c1 (patch) | |
tree | df7559885a2b4709981f4c17fcee3917f187b1cc /lib/logic_pio.c | |
parent | b7bfaa761d760e72a969d116517eaa12e404c262 (diff) | |
download | linux-stable-9c7417b5ec440242bb5b64521acd53d4e19130c1.tar.gz linux-stable-9c7417b5ec440242bb5b64521acd53d4e19130c1.tar.bz2 linux-stable-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 'lib/logic_pio.c')
0 files changed, 0 insertions, 0 deletions