summaryrefslogtreecommitdiffstats
path: root/fs/pstore/platform.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-03-15 10:14:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-18 09:43:35 +0100
commitcdce7a569c947878708695bcdc383dbcc192c099 (patch)
treeb82bd7b1dff6cb4efa72ecae9a9bccaecf334b7d /fs/pstore/platform.c
parentac960f1d6e51d7462e4f36a37ef4bc9e7f6db904 (diff)
downloadbarebox-cdce7a569c947878708695bcdc383dbcc192c099.tar.gz
barebox-cdce7a569c947878708695bcdc383dbcc192c099.tar.xz
pstore: Replace arguments for read() API
The argument list for the pstore_read() interface is unwieldy. This changes passes the new struct pstore_record instead. The erst backend was already doing something similar internally. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r--fs/pstore/platform.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index bad735e574..54fe60bf88 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -181,10 +181,7 @@ void pstore_get_records(int quiet)
if (psi->open && psi->open(psi))
goto out;
- while ((record.size = psi->read(&record.id, &record.type,
- &record.count,
- &record.buf, &record.compressed,
- record.psi)) > 0) {
+ while ((record.size = psi->read(&record)) > 0) {
if (record.compressed &&
record.type == PSTORE_TYPE_DMESG) {
pr_err("barebox does not have ramoops compression support\n");