pstore: Add hsize argument in write_buf call of pstore_ftrace_call
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Tue, 2 Jul 2013 05:36:54 +0000 (11:06 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 2 Jul 2013 08:39:37 +0000 (18:39 +1000)
Incorporate the addition of hsize argument in write_buf callback
of pstore. This was forgotten in

    6bbbca735936e15b9431882eceddcf6dff76e03c
    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>
fs/pstore/ftrace.c

index 43b1280..76a4eeb 100644 (file)
@@ -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);
 }