aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-06-27 04:32:56 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-01 04:10:48 -0400
commit6bbbca735936e15b9431882eceddcf6dff76e03c (patch)
tree480bb28754a7e47fe341530d98299e988b835224 /arch/powerpc/platforms/pseries
parent74251fe21bfa9310ddba9e0436d1fcf389e602ee (diff)
pstore: Pass header size in the pstore write callback
Header size is needed to distinguish between header and the dump data. Incorporate the addition of new argument (hsize) in the pstore write callback. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r--arch/powerpc/platforms/pseries/nvram.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c
index 14cc486709f6..3f0e7d67d747 100644
--- a/arch/powerpc/platforms/pseries/nvram.c
+++ b/arch/powerpc/platforms/pseries/nvram.c
@@ -502,6 +502,7 @@ static int nvram_pstore_open(struct pstore_info *psi)
502 * @part: pstore writes data to registered buffer in parts, 502 * @part: pstore writes data to registered buffer in parts,
503 * part number will indicate the same. 503 * part number will indicate the same.
504 * @count: Indicates oops count 504 * @count: Indicates oops count
505 * @hsize: Size of header added by pstore
505 * @size: number of bytes written to the registered buffer 506 * @size: number of bytes written to the registered buffer
506 * @psi: registered pstore_info structure 507 * @psi: registered pstore_info structure
507 * 508 *
@@ -512,7 +513,8 @@ static int nvram_pstore_open(struct pstore_info *psi)
512static int nvram_pstore_write(enum pstore_type_id type, 513static int nvram_pstore_write(enum pstore_type_id type,
513 enum kmsg_dump_reason reason, 514 enum kmsg_dump_reason reason,
514 u64 *id, unsigned int part, int count, 515 u64 *id, unsigned int part, int count,
515 size_t size, struct pstore_info *psi) 516 size_t hsize, size_t size,
517 struct pstore_info *psi)
516{ 518{
517 int rc; 519 int rc;
518 struct oops_log_info *oops_hdr = (struct oops_log_info *) oops_buf; 520 struct oops_log_info *oops_hdr = (struct oops_log_info *) oops_buf;