aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/mce_amd.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2010-11-13 11:44:26 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2011-01-07 05:54:25 -0500
commit50adbbd8a8e572ad2533eace228c841ec84028a3 (patch)
tree34df56e03f29790ed6b16b73cf25d2a5793f0b05 /drivers/edac/mce_amd.c
parentbad11e031862294265145d87dd4be1ae4af0d57f (diff)
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>
Diffstat (limited to 'drivers/edac/mce_amd.c')
-rw-r--r--drivers/edac/mce_amd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 59ad34c506a5..61e0e87d1841 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
776 776
777 if (c->x86 == 0x15) 777 if (c->x86 == 0x15)
778 pr_cont("|%s|%s", 778 pr_cont("|%s|%s",
779 ((m->status & BIT(44)) ? "Deferred" : "-"), 779 ((m->status & BIT_64(44)) ? "Deferred" : "-"),
780 ((m->status & BIT(43)) ? "Poison" : "-")); 780 ((m->status & BIT_64(43)) ? "Poison" : "-"));
781 781
782 /* do the two bits[14:13] together */ 782 /* do the two bits[14:13] together */
783 ecc = (m->status >> 45) & 0x3; 783 ecc = (m->status >> 45) & 0x3;