Skip to content

Commit

Permalink
EDAC, MCE: Use BIT_64() to eliminate warnings on 32-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Borislav Petkov committed Jan 7, 2011
1 parent bad11e0 commit 50adbbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)

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

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

0 comments on commit 50adbbd

Please sign in to comment.