From: Alexander Graf <agraf@suse.de>
To: Linuxppc-dev <linuxppc-dev@ozlabs.org>
Cc: Alexandre Bounine <alexandre.bounine@idt.com>,
Thomas Moll <thomas.moll@sysgo.com>
Subject: [PATCH 2/3] PPC: Fix compilation of fsl_rio.c
Date: Tue, 31 Aug 2010 04:15:21 +0200 [thread overview]
Message-ID: <1283220922-20369-3-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1283220922-20369-1-git-send-email-agraf@suse.de>
Commit a52c8f52 introduced machine check magic for the RapidIO chip.
Unfortunately it was so magical that it used constants that aren't even
defined!
This patch bluntly comments out the broken constant's usage. This
probably means that said functionality thus doesn't work, but at
least it makes it compile for me.
CC: Alexandre Bounine <alexandre.bounine@idt.com>
CC: Thomas Moll <thomas.moll@sysgo.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
arch/powerpc/sysdev/fsl_rio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
index 6425abe..dba2969 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c
@@ -245,7 +245,7 @@ static int (*saved_mcheck_exception)(struct pt_regs *regs);
static int fsl_rio_mcheck_exception(struct pt_regs *regs)
{
const struct exception_table_entry *entry = NULL;
- unsigned long reason = (mfspr(SPRN_MCSR) & MCSR_MASK);
+ unsigned long reason = (mfspr(SPRN_MCSR) /* & MCSR_MASK */);
if (reason & MCSR_BUS_RBERR) {
reason = in_be32((u32 *)(rio_regs_win + RIO_LTLEDCSR));
--
1.6.0.2
next prev parent reply other threads:[~2010-08-31 2:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 2:15 [PATCH 0/3] MPC85xx compile fixes Alexander Graf
2010-08-31 2:15 ` [PATCH 1/3] PPC: s/mtmsrd/MTMSR in ldstfp.S Alexander Graf
2010-08-31 2:49 ` Sean MacLennan
2010-08-31 4:37 ` Kumar Gala
2010-08-31 2:15 ` Alexander Graf [this message]
2010-08-31 18:10 ` [PATCH 2/3] PPC: Fix compilation of fsl_rio.c Scott Wood
2010-08-31 18:55 ` Kumar Gala
2010-08-31 2:15 ` [PATCH 3/3] PPC: Fix compilation of mpc85xx_mds.c Alexander Graf
2010-08-31 21:24 ` Kumar Gala
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=1283220922-20369-3-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=alexandre.bounine@idt.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=thomas.moll@sysgo.com \
/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;
as well as URLs for NNTP newsgroup(s).