From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0D38C33C99 for ; Fri, 10 Jan 2020 06:11:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB36020673 for ; Fri, 10 Jan 2020 06:11:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731437AbgAJGLM (ORCPT ); Fri, 10 Jan 2020 01:11:12 -0500 Received: from foss.arm.com ([217.140.110.172]:39954 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbgAJGLM (ORCPT ); Fri, 10 Jan 2020 01:11:12 -0500 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 C25B3328; Thu, 9 Jan 2020 22:11:11 -0800 (PST) Received: from [10.162.42.128] (p8cg001049571a15.blr.arm.com [10.162.42.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 736CA3F6C4; Thu, 9 Jan 2020 22:14:38 -0800 (PST) Subject: Re: [PATCH] efi: Fix comment for efi_mem_type() wrt absent physical addresses To: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Cc: Ard Biesheuvel References: <1573449229-13918-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <238c9810-dcec-7f4b-7bcb-a339f1f8aaad@arm.com> Date: Fri, 10 Jan 2020 11:42:24 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1573449229-13918-1-git-send-email-anshuman.khandual@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On 11/11/2019 10:43 AM, Anshuman Khandual wrote: > A previous commit f99afd08a45f ("efi: Update efi_mem_type() to return an > error rather than 0") changed the return type from EFI_RESERVED_TYPE to > -EINVAL when the searched physical address is not present in any memory > descriptor. But the comment preceding the function never changed. Lets > change the comment now to reflect the new return type -EINVAL. > > Cc: Ard Biesheuvel > Cc: linux-efi@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Hello Ard, Just wondering if this patch is getting pulled. Dont see it either on linux-next or the following EFI tree. git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi (efi-next) - Anshuman > --- > Changes in V2: > > - Changed comment for efi_mem_type() instead of the return type per Ard > > V1: (https://lore.kernel.org/patchwork/patch/1149002/) > > drivers/firmware/efi/efi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c > index 77ca52d86e30..47b0bf7a2b7f 100644 > --- a/drivers/firmware/efi/efi.c > +++ b/drivers/firmware/efi/efi.c > @@ -899,7 +899,7 @@ u64 efi_mem_attributes(unsigned long phys_addr) > * > * Search in the EFI memory map for the region covering @phys_addr. > * Returns the EFI memory type if the region was found in the memory > - * map, EFI_RESERVED_TYPE (zero) otherwise. > + * map, -EINVAL otherwise. > */ > int efi_mem_type(unsigned long phys_addr) > { >