aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/mce_amd.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-10-15 09:27:02 -0400
committerBorislav Petkov <bp@amd64.org>2010-10-21 08:48:07 -0400
commit525906bc898d712f21e5bfcfc85ab0e517e3d086 (patch)
tree545274c1dbf3d77f6d9ba22b5475f41cf390f257 /drivers/edac/mce_amd.c
parentcf1d2200dbc214c26a116c4d0c75b7cf27bb19b6 (diff)
EDAC, MCE: Fix shift warning on 32-bit
Fix drivers/edac/mce_amd.c:262: warning: left shift count >= width of type on 32-bit builds. Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/mce_amd.c')
-rw-r--r--drivers/edac/mce_amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 7f74f0f318c8..c0181093b490 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -265,7 +265,7 @@ static void amd_decode_ic_mce(struct mce *m)
265 pr_cont("%s TLB %s.\n", LL_MSG(ec), 265 pr_cont("%s TLB %s.\n", LL_MSG(ec),
266 (xec ? "multimatch" : "parity error")); 266 (xec ? "multimatch" : "parity error"));
267 else if (BUS_ERROR(ec)) { 267 else if (BUS_ERROR(ec)) {
268 bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT(58))); 268 bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58)));
269 269
270 pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read")); 270 pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read"));
271 } else if (fam_ops->ic_mce(ec)) 271 } else if (fam_ops->ic_mce(ec))