mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
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>
This commit is contained in:
parent
cf1d2200db
commit
525906bc89
@ -265,7 +265,7 @@ static void amd_decode_ic_mce(struct mce *m)
|
|||||||
pr_cont("%s TLB %s.\n", LL_MSG(ec),
|
pr_cont("%s TLB %s.\n", LL_MSG(ec),
|
||||||
(xec ? "multimatch" : "parity error"));
|
(xec ? "multimatch" : "parity error"));
|
||||||
else if (BUS_ERROR(ec)) {
|
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"));
|
pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read"));
|
||||||
} else if (fam_ops->ic_mce(ec))
|
} else if (fam_ops->ic_mce(ec))
|
||||||
|
Loading…
Reference in New Issue
Block a user