Skip to content

Commit 1d8b368

Browse files
arunabalozbenh
authored andcommitted
pstore: Add hsize argument in write_buf call of pstore_ftrace_call
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 <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 7a9cdd9 commit 1d8b368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/pstore/ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void notrace pstore_ftrace_call(unsigned long ip,
4444
rec.parent_ip = parent_ip;
4545
pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id());
4646
psinfo->write_buf(PSTORE_TYPE_FTRACE, 0, NULL, 0, (void *)&rec,
47-
sizeof(rec), psinfo);
47+
0, sizeof(rec), psinfo);
4848

4949
local_irq_restore(flags);
5050
}

0 commit comments

Comments
 (0)