diff options
author | Kees Cook <keescook@chromium.org> | 2019-03-15 10:14:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-18 09:43:35 +0100 |
commit | da9b86ec0fbec0eb60646e7a3c700076a423717d (patch) | |
tree | b02494d4d3cae4612abf060cc552ac81d833a075 /include/linux | |
parent | cdce7a569c947878708695bcdc383dbcc192c099 (diff) | |
download | barebox-da9b86ec0fbec0eb60646e7a3c700076a423717d.tar.gz barebox-da9b86ec0fbec0eb60646e7a3c700076a423717d.tar.xz |
pstore: Replace arguments for write() API
Similar to the pstore_info read() callback, there were too many arguments.
This switches to the new struct pstore_record pointer instead. This adds
"reason" and "part" to the record structure as well.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pstore.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index b136c354b9..15e1e3d6fa 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -52,10 +52,13 @@ struct pstore_record { enum pstore_type_id type; u64 id; char *buf; - int count; - bool compressed; ssize_t size; ssize_t ecc_notice_size; + + int count; + enum kmsg_dump_reason reason; + unsigned int part; + bool compressed; }; struct pstore_info { @@ -67,10 +70,7 @@ struct pstore_info { int (*open)(struct pstore_info *psi); int (*close)(struct pstore_info *psi); ssize_t (*read)(struct pstore_record *record); - int (*write)(enum pstore_type_id type, - enum kmsg_dump_reason reason, u64 *id, - unsigned int part, int count, bool compressed, - size_t size, struct pstore_info *psi); + int (*write)(struct pstore_record *record); int (*write_buf)(enum pstore_type_id type, enum kmsg_dump_reason reason, u64 *id, unsigned int part, const char *buf, bool compressed, |