All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Convert vmcore to use an iov_iter
@ 2021-12-13 14:39 ` Matthew Wilcox (Oracle)
  0 siblings, 0 replies; 28+ messages in thread
From: Matthew Wilcox (Oracle) @ 2021-12-13 14:39 UTC (permalink / raw)
  To: Baoquan He, Vivek Goyal, Dave Young, kexec
  Cc: Matthew Wilcox (Oracle),
	Tiezhu Yang, linux-kernel, Amit Daniel Kachhap,
	Christoph Hellwig, linux-fsdevel

For some reason several people have been sending bad patches to fix
compiler warnings in vmcore recently.  Here's how it should be done.
Compile-tested only on x86.  As noted in the first patch, s390 should
take this conversion a bit further, but I'm not inclined to do that
work myself.

v3:
 - Send the correct patches this time
v2:
 - Removed unnecessary kernel-doc
 - Included uio.h to fix compilation problems
 - Made read_from_oldmem_iter static to avoid compile warnings during the
   conversion
 - Use iov_iter_truncate() (Christoph)

Matthew Wilcox (Oracle) (3):
  vmcore: Convert copy_oldmem_page() to take an iov_iter
  vmcore: Convert __read_vmcore to use an iov_iter
  vmcore: Convert read_from_oldmem() to take an iov_iter

 arch/arm/kernel/crash_dump.c     |  27 +------
 arch/arm64/kernel/crash_dump.c   |  29 +------
 arch/ia64/kernel/crash_dump.c    |  32 +-------
 arch/mips/kernel/crash_dump.c    |  27 +------
 arch/powerpc/kernel/crash_dump.c |  35 ++-------
 arch/riscv/kernel/crash_dump.c   |  26 +------
 arch/s390/kernel/crash_dump.c    |  13 ++--
 arch/sh/kernel/crash_dump.c      |  29 ++-----
 arch/x86/kernel/crash_dump_32.c  |  29 +------
 arch/x86/kernel/crash_dump_64.c  |  48 ++++--------
 fs/proc/vmcore.c                 | 129 +++++++++++++------------------
 include/linux/crash_dump.h       |  19 ++---
 12 files changed, 122 insertions(+), 321 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2022-02-25  8:29 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 14:39 [PATCH v3 0/3] Convert vmcore to use an iov_iter Matthew Wilcox (Oracle)
2021-12-13 14:39 ` Matthew Wilcox (Oracle)
2021-12-13 14:39 ` [PATCH v3 1/3] vmcore: Convert copy_oldmem_page() to take " Matthew Wilcox (Oracle)
2021-12-13 14:39   ` Matthew Wilcox (Oracle)
2021-12-20  8:10   ` Baoquan He
2021-12-20  8:10     ` Baoquan He
2021-12-21  8:29   ` Christoph Hellwig
2021-12-21  8:29     ` Christoph Hellwig
2021-12-13 14:39 ` [PATCH v3 2/3] vmcore: Convert __read_vmcore to use " Matthew Wilcox (Oracle)
2021-12-13 14:39   ` Matthew Wilcox (Oracle)
2021-12-21  6:52   ` Baoquan He
2021-12-21  6:52     ` Baoquan He
2021-12-21  8:29   ` Christoph Hellwig
2021-12-21  8:29     ` Christoph Hellwig
2021-12-13 14:39 ` [PATCH v3 3/3] vmcore: Convert read_from_oldmem() to take " Matthew Wilcox (Oracle)
2021-12-13 14:39   ` Matthew Wilcox (Oracle)
2021-12-21  8:30   ` Christoph Hellwig
2021-12-21  8:30     ` Christoph Hellwig
2021-12-16  8:43 ` [PATCH v3 0/3] Convert vmcore to use " Baoquan He
2021-12-16  8:43   ` Baoquan He
2021-12-21  8:06 ` Baoquan He
2021-12-21  8:06   ` Baoquan He
2022-01-01  0:36 ` Al Viro
2022-01-01  0:36   ` Al Viro
2022-01-27  9:44   ` Baoquan He
2022-01-27  9:44     ` Baoquan He
2022-02-25  8:28   ` Baoquan He
2022-02-25  8:28     ` Baoquan He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.