Skip to content

Commit

Permalink
pstore: Add hsize argument in write_buf call of pstore_ftrace_call
Browse files Browse the repository at this point in the history
Incorporate the addition of hsize argument in write_buf callback
of pstore. This was forgotten in

    6bbbca7
    pstore: Pass header size in the pstore write callback

Causing a build failure when ftrace and pstore are enabled.

Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Aruna Balakrishnaiah authored and Benjamin Herrenschmidt committed Jul 2, 2013
1 parent 7a9cdd9 commit 1d8b368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pstore/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void notrace pstore_ftrace_call(unsigned long ip,
rec.parent_ip = parent_ip;
pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id());
psinfo->write_buf(PSTORE_TYPE_FTRACE, 0, NULL, 0, (void *)&rec,
sizeof(rec), psinfo);
0, sizeof(rec), psinfo);

local_irq_restore(flags);
}
Expand Down

0 comments on commit 1d8b368

Please sign in to comment.