Skip to content

Commit 50adbbd

Browse files
rddunlapBorislav Petkov
authored andcommitted
EDAC, MCE: Use BIT_64() to eliminate warnings on 32-bit
Building for X86_32 produces shift count warnings, so use BIT_64() to eliminate the warnings. drivers/edac/mce_amd.c:778: warning: left shift count >= width of type drivers/edac/mce_amd.c:778: warning: left shift count >= width of type Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Doug Thompson <dougthompson@xmission.com> Cc: bluesmoke-devel@lists.sourceforge.net Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
1 parent bad11e0 commit 50adbbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/edac/mce_amd.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
776776

777777
if (c->x86 == 0x15)
778778
pr_cont("|%s|%s",
779-
((m->status & BIT(44)) ? "Deferred" : "-"),
780-
((m->status & BIT(43)) ? "Poison" : "-"));
779+
((m->status & BIT_64(44)) ? "Deferred" : "-"),
780+
((m->status & BIT_64(43)) ? "Poison" : "-"));
781781

782782
/* do the two bits[14:13] together */
783783
ecc = (m->status >> 45) & 0x3;

0 commit comments

Comments
 (0)