Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1051878ybh; Sat, 3 Aug 2019 16:46:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUpy1KqeCdfCM+tqk+3Tg27N/Q3Yt8ilUbwWb3fZGtVzbZW5vpsLv9I78pFHCNAuUtCX5f X-Received: by 2002:a17:902:be03:: with SMTP id r3mr139516533pls.156.1564875997491; Sat, 03 Aug 2019 16:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564875997; cv=none; d=google.com; s=arc-20160816; b=ZTMsBbAWnjyqMLsGXddIlCVGCgV8/XVB1f/aJ7h0k09Qpzki4kKtklpB8BUuVy3FYe ujNZooUxD/uE69LhYCuVY6s0WaknN0mDHmlCuzY0E84yC5GLbhnW/1ZvtltFtv4djITV XqCBSfF69VYE/Vvfw67dHSg86xMMHbKq0zg2yGmM6IdT2BhlmC3ff7/VMi7C+El2MtJV mR5htTBZfXEc3i1D0O6Wt9DbF7KGJ85VfOeoG+GluUi6grbOXJawBa0by7S0iHjzfFGc qG6vQU8RWCb5SNZWMyTADa/7UxqZbQTwb0uLNJkbTeoJ7kevVmw+7aVDfexHaKQLcz39 d4Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DnY58umCjYrTSLcg6Qtiuh3f+UE+J5NgCikS/LlFfnQ=; b=dSpgYkZNc67z/BGCtFUhM4cl95p9bHW7ewW1FCV0OiA6ZGaatsT08QlwFHfGoqZK5d m3NKtZKt/Aoas0GHLFtM5f1ZyUii9j8nBxhcrq8fG9tLpiWwRMI3VXm0+zn5lmXTSmEb O2slWNeK2tTps9sfv/dObsrO3B5WMTg2Ubb9Pj4L5U0zvizQzVxVZ/YwaVyqE8jnDnXd IFCgEtRBw0CbInKl5SOXY82MtnWiLbOTBLqL3WuCHvUFeMBbqGgJyS4H43JNW2CgCZ+Z QhX7eM9Vzd6X6w/ubhe5rOPk1ULTLGiMyFopSQ3vVRJOuOeH3U+Jy/DvFQkj8Xj+3jNr aj3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si9206871pjr.46.2019.08.03.16.46.22; Sat, 03 Aug 2019 16:46:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404042AbfHBRE5 (ORCPT + 99 others); Fri, 2 Aug 2019 13:04:57 -0400 Received: from foss.arm.com ([217.140.110.172]:55232 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403954AbfHBRE5 (ORCPT ); Fri, 2 Aug 2019 13:04:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 74938344; Fri, 2 Aug 2019 10:04:56 -0700 (PDT) Received: from [10.1.196.105] (eglon.cambridge.arm.com [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C281F3F575; Fri, 2 Aug 2019 10:04:55 -0700 (PDT) Subject: Re: [PATCH v2 12/24] EDAC, ghes: Use standard kernel macros for page calculations To: Robert Richter Cc: Borislav Petkov , Mauro Carvalho Chehab , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20190624150758.6695-1-rrichter@marvell.com> <20190624150758.6695-13-rrichter@marvell.com> From: James Morse Message-ID: Date: Fri, 2 Aug 2019 18:04:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190624150758.6695-13-rrichter@marvell.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robert, On 24/06/2019 16:09, Robert Richter wrote: > Use standard macros for page calculations. > > Signed-off-by: Robert Richter > --- > diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c > index 786f1b32eee1..746083876b5f 100644 > --- a/drivers/edac/ghes_edac.c > +++ b/drivers/edac/ghes_edac.c > @@ -311,8 +311,8 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err) > > /* Error address */ > if (mem_err->validation_bits & CPER_MEM_VALID_PA) { > - e->page_frame_number = mem_err->physical_addr >> PAGE_SHIFT; > - e->offset_in_page = mem_err->physical_addr & ~PAGE_MASK; > + e->page_frame_number = PHYS_PFN(mem_err->physical_addr); > + e->offset_in_page = offset_in_page(mem_err->physical_addr); > } > > /* Error grain */ > After a shorter game of spot-the-difference: Reviewed-by: James Morse Previously here: https://lore.kernel.org/linux-edac/e566fe1d-ed06-53bc-6827-f6dfa32ee485@arm.com/ Please pick up tags when posting a new version. If you don't do this, its very difficult to convince people to spend time reviewing your series. Thanks, James