EDAC, MCE: Fix shift warning on 32-bit
Changes
1 files changed · +1 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/edac/mce_amd.c | modified | +1 | −1 | View file |
drivers/edac/mce_amd.c
View filediff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 7f74f0f..c018109 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)
pr_cont("%s TLB %s.\n", LL_MSG(ec),
(xec ? "multimatch" : "parity error"));
else if (BUS_ERROR(ec)) {
- bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT(58)));
+ bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58)));
pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read"));
} else if (fam_ops->ic_mce(ec))