提交 50adbbd8 编写于 作者: R Randy Dunlap 提交者: Borislav Petkov

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: NRandy Dunlap <randy.dunlap@oracle.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Cc: bluesmoke-devel@lists.sourceforge.net
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
上级 bad11e03
...@@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) ...@@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
if (c->x86 == 0x15) if (c->x86 == 0x15)
pr_cont("|%s|%s", pr_cont("|%s|%s",
((m->status & BIT(44)) ? "Deferred" : "-"), ((m->status & BIT_64(44)) ? "Deferred" : "-"),
((m->status & BIT(43)) ? "Poison" : "-")); ((m->status & BIT_64(43)) ? "Poison" : "-"));
/* do the two bits[14:13] together */ /* do the two bits[14:13] together */
ecc = (m->status >> 45) & 0x3; ecc = (m->status >> 45) & 0x3;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册