Commit 525906bc898d712f21e5bfcfc85ab0e517e3d086

Authored by Borislav Petkov
Committed by Borislav Petkov
1 parent cf1d2200db

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/edac/mce_amd.c
... ... @@ -265,7 +265,7 @@
265 265 pr_cont("%s TLB %s.\n", LL_MSG(ec),
266 266 (xec ? "multimatch" : "parity error"));
267 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 270 pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read"));
271 271 } else if (fam_ops->ic_mce(ec))