Commit fe3ed20f authored by Borislav Petkov's avatar Borislav Petkov Committed by Ingo Molnar

x86/mce: Rename mce_log()'s argument

We call it everywhere "struct mce *m". Adjust that here too to avoid
confusion.

No functionality change.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170327093304.10683-3-bp@alien8.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 4a96d1a5
...@@ -158,14 +158,14 @@ static struct mce_log mcelog = { ...@@ -158,14 +158,14 @@ static struct mce_log mcelog = {
.recordlen = sizeof(struct mce), .recordlen = sizeof(struct mce),
}; };
void mce_log(struct mce *mce) void mce_log(struct mce *m)
{ {
unsigned next, entry; unsigned next, entry;
/* Emit the trace record: */ /* Emit the trace record: */
trace_mce_record(mce); trace_mce_record(m);
if (!mce_gen_pool_add(mce)) if (!mce_gen_pool_add(m))
irq_work_queue(&mce_irq_work); irq_work_queue(&mce_irq_work);
wmb(); wmb();
...@@ -195,7 +195,7 @@ void mce_log(struct mce *mce) ...@@ -195,7 +195,7 @@ void mce_log(struct mce *mce)
if (cmpxchg(&mcelog.next, entry, next) == entry) if (cmpxchg(&mcelog.next, entry, next) == entry)
break; break;
} }
memcpy(mcelog.entry + entry, mce, sizeof(struct mce)); memcpy(mcelog.entry + entry, m, sizeof(struct mce));
wmb(); wmb();
mcelog.entry[entry].finished = 1; mcelog.entry[entry].finished = 1;
wmb(); wmb();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment