From: Ingo Molnar <mingo@elte.hu>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
yinghai@kernel.org, tglx@linutronix.de,
jaswinderrajput@gmail.com, mingo@elte.hu
Subject: [tip:x86/cleanups] x86: mpparse: clean up code by introducing a few helper functions, fix
Date: Thu, 19 Mar 2009 08:21:26 GMT [thread overview]
Message-ID: <tip-c58603e81b3ed4f1c7352e091fe43fd0bd8d06cc@git.kernel.org> (raw)
In-Reply-To: <1237403503.22438.21.camel@ht.satnam>
Commit-ID: c58603e81b3ed4f1c7352e091fe43fd0bd8d06cc
Gitweb: http://git.kernel.org/tip/c58603e81b3ed4f1c7352e091fe43fd0bd8d06cc
Author: Ingo Molnar <mingo@elte.hu>
AuthorDate: Thu, 19 Mar 2009 08:50:35 +0100
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Thu, 19 Mar 2009 08:52:13 +0100
x86: mpparse: clean up code by introducing a few helper functions, fix
Impact: fix boot crash
This fixes commit a6830278568a8bb9758aac152db15187741e0113.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1237403503.22438.21.camel@ht.satnam>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/mpparse.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 58ddf62..290cb57 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -319,23 +319,23 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
case MP_PROCESSOR:
/* ACPI may have already provided this data */
if (!acpi_lapic)
- MP_processor_info((struct mpc_cpu *)&mpt);
+ MP_processor_info((struct mpc_cpu *)mpt);
skip_entry(&mpt, &count, sizeof(struct mpc_cpu));
break;
case MP_BUS:
- MP_bus_info((struct mpc_bus *)&mpt);
+ MP_bus_info((struct mpc_bus *)mpt);
skip_entry(&mpt, &count, sizeof(struct mpc_bus));
break;
case MP_IOAPIC:
- MP_ioapic_info((struct mpc_ioapic *)&mpt);
+ MP_ioapic_info((struct mpc_ioapic *)mpt);
skip_entry(&mpt, &count, sizeof(struct mpc_ioapic));
break;
case MP_INTSRC:
- MP_intsrc_info((struct mpc_intsrc *)&mpt);
+ MP_intsrc_info((struct mpc_intsrc *)mpt);
skip_entry(&mpt, &count, sizeof(struct mpc_intsrc));
break;
case MP_LINTSRC:
- MP_lintsrc_info((struct mpc_lintsrc *)&mpt);
+ MP_lintsrc_info((struct mpc_lintsrc *)mpt);
skip_entry(&mpt, &count, sizeof(struct mpc_lintsrc));
break;
default:
@@ -902,7 +902,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc,
skip_entry(&mpt, &count, sizeof(struct mpc_ioapic));
break;
case MP_INTSRC:
- check_irq_src((struct mpc_intsrc *)&mpt, &nr_m_spare);
+ check_irq_src((struct mpc_intsrc *)mpt, &nr_m_spare);
skip_entry(&mpt, &count, sizeof(struct mpc_intsrc));
break;
case MP_LINTSRC:
next prev parent reply other threads:[~2009-03-19 8:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 18:33 [git-pull -tip] x86: mpparse cleanup Jaswinder Singh Rajput
2009-03-17 18:53 ` Thomas Gleixner
2009-03-18 12:45 ` Jaswinder Singh Rajput
2009-03-18 14:11 ` Ingo Molnar
2009-03-18 16:05 ` Jaswinder Singh Rajput
2009-03-18 16:18 ` Ingo Molnar
2009-03-18 16:39 ` Ingo Molnar
2009-03-18 17:14 ` Jaswinder Singh Rajput
2009-03-18 19:02 ` Ingo Molnar
2009-03-18 19:11 ` Jaswinder Singh Rajput
2009-03-18 21:57 ` Thomas Gleixner
2009-03-19 8:23 ` Ingo Molnar
2009-03-19 8:21 ` Ingo Molnar [this message]
2009-03-20 8:02 ` Jaswinder Singh Rajput
2009-03-20 12:05 ` Jaswinder Singh Rajput
2009-03-20 18:43 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-c58603e81b3ed4f1c7352e091fe43fd0bd8d06cc@git.kernel.org \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=jaswinderrajput@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome