From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756257AbaGVRZj (ORCPT ); Tue, 22 Jul 2014 13:25:39 -0400 Received: from mail-vc0-f171.google.com ([209.85.220.171]:32878 "EHLO mail-vc0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755221AbaGVRZi convert rfc822-to-8bit (ORCPT ); Tue, 22 Jul 2014 13:25:38 -0400 MIME-Version: 1.0 In-Reply-To: <874my98p6u.fsf@nemi.mork.no> References: <1406004789-9918-1-git-send-email-xerofoify@gmail.com> <874my98p6u.fsf@nemi.mork.no> Date: Tue, 22 Jul 2014 10:25:35 -0700 Message-ID: Subject: Re: [PATCH] edac: Remove fixmes in e7xxx_edac.c From: Tony Luck To: =?UTF-8?Q?Bj=C3=B8rn_Mork?= Cc: Nicholas Krause , Doug Thompson , Borislav Petkov , "m.chehab@samsung.com" , Linux Edac Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 22, 2014 at 7:04 AM, Bjørn Mork wrote: >> - /* FIXME - should use PAGE_SHIFT */ >> - page = error_1b >> 6; /* convert the address to 4k page */ >> + page = error_1b >> PAGE_SHIFT; /* convert the address to 4k page */ > > I just have to bite... Where did you get the idea that you can go > around and "fix" FIMXE's like they were spelling errors? Or apparently without thinking? Since "PAGE_SHIFT" does not have the numerical value "6" your new code is obviously not equivalent to the old. -Tony