Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754164Ab1FLPue (ORCPT ); Sun, 12 Jun 2011 11:50:34 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:47429 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753801Ab1FLPua (ORCPT ); Sun, 12 Jun 2011 11:50:30 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ffM1HV+OMe4wQOK+Jx26kredyYPS4nXNDE1MSMam/mh7UGOuACpvpMhJMzXKcG20hA dpyVUxXJZMj1e7FZ/JgTH51u9M4OQibulAyiFdMf5Y9QYUan0koch06KYs1678d0248F B7kGu+HKMSMCUKLgAkMyXGtLBjNurabNw6cbo= MIME-Version: 1.0 In-Reply-To: References: <20110609030401.GA2615@gmail.com> <20110609103747.59805668.randy.dunlap@oracle.com> <20110610052047.GB3643@gmail.com> Date: Sun, 12 Jun 2011 21:20:29 +0530 Message-ID: Subject: Re: [PATCH RESEND]Remove a warning for drivers/edac/i82975x_edac.c From: Arvind R To: Connor Hansen Cc: Randy Dunlap , linux-kernel@vger.kernel.org, ravi@jetztechnologies.com, bluesmoke-devel@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 33 Hi, My system is broken currently, so I'm unable to check:( But the foll. patch should fix the problem for 64 and 32 bits AND work correct wrt. to error-info. Would be glad if can check, please. --- linux-2.6.39.1.orig/drivers/edac/i82975x_edac.c 2011-05-19 09:36:34 +0530 +++ linux-2.6.39.1/drivers/edac/i82975x_edac.c 2011-06-12 21:03:37 +0530 @@ -294,12 +294,12 @@ } page = (unsigned long) info->eap; - if (info->xeap & 1) - page |= 0x100000000ul; chan = page & 1; - page >>= 1; offst = page & ((1 << PAGE_SHIFT) - 1); - page >>= PAGE_SHIFT; + page >>= 1; + if (info->xeap & 1) + page |= 0x80000000; + page >>= (PAGE_SHIFT - 1); row = edac_mc_find_csrow_by_page(mci, page); if (info->errsts & 0x0002) - arvind -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/