[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211213141907.3064347-1-willy@infradead.org>
Date: Mon, 13 Dec 2021 14:19:04 +0000
From: "Matthew Wilcox (Oracle)" <willy@...radead.org>
To: Baoquan He <bhe@...hat.com>, Vivek Goyal <vgoyal@...hat.com>,
Dave Young <dyoung@...hat.com>, kexec@...ts.infradead.org
Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
Tiezhu Yang <yangtiezhu@...ngson.cn>,
linux-kernel@...r.kernel.org,
Amit Daniel Kachhap <amit.kachhap@....com>,
Christoph Hellwig <hch@....de>, linux-fsdevel@...r.kernel.org
Subject: [PATCH v2 0/3] Convert vmcore to use an iov_iter
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.
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 __read_vmcore to use an iov_iter
vmcore: Convert read_from_oldmem() to take an iov_iter
iov-kaddr
arch/x86/kernel/crash_dump_64.c | 7 +-
fs/9p/vfs_dir.c | 5 +-
fs/9p/xattr.c | 6 +-
fs/proc/vmcore.c | 119 ++++++++++++--------------------
include/linux/crash_dump.h | 10 ++-
include/linux/uio.h | 9 +++
lib/iov_iter.c | 32 +++++++++
7 files changed, 97 insertions(+), 91 deletions(-)
--
2.33.0
Powered by blists - more mailing lists