* [PATCH -next] edac: use BIT_64() to eliminate warnings
[not found] <20101112130547.c2a3c2c1.sfr@canb.auug.org.au>
@ 2010-11-13 16:44 ` Randy Dunlap
2010-11-14 17:54 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2010-11-13 16:44 UTC (permalink / raw)
To: Stephen Rothwell, akpm; +Cc: Doug, LKML, linux-next, Thompson, bluesmoke-devel
From: Randy Dunlap <randy.dunlap@oracle.com>
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: Borislav Petkov <borislav.petkov@amd.com>
Cc: bluesmoke-devel@lists.sourceforge.net
---
drivers/edac/mce_amd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-next-20101112.orig/drivers/edac/mce_amd.c
+++ linux-next-20101112/drivers/edac/mce_amd.c
@@ -776,8 +776,8 @@ int amd_decode_mce(struct notifier_block
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;
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] edac: use BIT_64() to eliminate warnings
2010-11-13 16:44 ` [PATCH -next] edac: use BIT_64() to eliminate warnings Randy Dunlap
@ 2010-11-14 17:54 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2010-11-14 17:54 UTC (permalink / raw)
To: Randy Dunlap
Cc: Stephen Rothwell, akpm, linux-next@vger.kernel.org, LKML,
Doug Thompson, bluesmoke-devel@lists.sourceforge.net, edac-devel
On Sat, Nov 13, 2010 at 11:44:26AM -0500, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> 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: Borislav Petkov <borislav.petkov@amd.com>
> Cc: bluesmoke-devel@lists.sourceforge.net
Thanks, applied.
BTW, Doug, we still carry the bluesmoke-devel ML as edac mailing list
in MAINTAINERS althouth there's a new linux-edac@vger... which got
proposed recently. I think we should use that new one and deprecate the
sourceforge list since the new one is not moderated for subsribers and
thus more open.
Thoughts?
--
Regards/Gruss,
Boris.
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-14 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20101112130547.c2a3c2c1.sfr@canb.auug.org.au>
2010-11-13 16:44 ` [PATCH -next] edac: use BIT_64() to eliminate warnings Randy Dunlap
2010-11-14 17:54 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).